how to convert a jupyter notebook to a python script code example
Example 1: converting jupyter notebook files to python
pip install ipython
pip install nbconvert
exmaple:
jupyter nbconvert --to python NumPy_Tut.ipynb
Example 2: jupyter notebook convert to script
$ jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb