turning a working ipython notebook into proper python scripts code example
Example: convert jupyter notebook to python cmd line
jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb
jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb