How to save .py files in an IPython laptop with .ipynb files

How to set my IPython Notebook so that whenever I save the .ipynb file, it will automatically save the file as a .py file (in the same directory)?

In particular, every time I make changes to the laptop, I don’t want to upload the file as a .py file, and then move the downloaded file to a directory.

I recently switched to Mac and was able to do this on my previous (PC) setup, but could not find how to explicitly install IPython for this.

+6
source share
1 answer

You can start the laptop server with the --script flag or set this variable to True in the ipython_notebook_config.py file:

 c.FileNotebookManager.save_script = True 
+4
source

All Articles