How do I convert a IPython Notebook into a Python file via commandline?
I'm looking at using the *.ipynb files as the source of truth and programmatically 'compiling' them into .py files for scheduled jobs/tasks. The only way I understand to do this is via the GUI. Is there a way to do it via command line? wwwilliam If you don't want to output a Python script every time you save, or you don't want to restart the IPython kernel: On the command line , you can use nbconvert : $ jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb As a bit of a hack, you can even call the above command in an IPython notebook by pre-pending ! (used for any command line argument). Inside