convert jupyter notebook code code example
Example 1: convert jupyter notebook to python cmd line
jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb
Example 2: convert ipynb to py
open the ipynb file in jupyter notebook
go to file>download as>py file