jupyter nbconvert --to script *.ipynb # for converting multiple .ipynb -> .py $ jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb # for single .ipynb conversion