How do I set my IPython Notebook so that whenever I save the .ipynb
file it will also automatically save the file as a .py
file (in the same directory)?
In particular every time I make a change to a notebook I don't want to have to download the file as a .py
file and then move the downloaded file into the directory.
I recently moved to a Mac and was able to do this on my previous (PC) setup, but haven't been able to find how to explicitly set IPython to do this.
ipynb) to python (. py) is using the Jupyter GUI environment. Open the jupyter notebook that you want to convert. Navigate into the 'File' menu and select 'Download as'.
Saving your edits is simple. There is a disk icon in the upper left of the Jupyter tool bar. Click the save icon and your notebook edits are saved.
You can start the notebook server with a --script
flag, or set this variable to True in the file ipython_notebook_config.py
:
c.FileNotebookManager.save_script = True
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With