1.Execute jupyter notebook in command line

jupyter nbconvert --to notebook --inplace --execute my-file.ipynb

2. Convert jupyter notebook to python script

jupyter nbconvert --to script my-file.ipynb

3. Include image in jupyter notebook

![](images/calculator_erased.jpg)

from IPython.display import Image
Image(url="images/calculator_erased.jpg", width=200)

4. Rename *.py filename

import os

filename = "2020-12-29-build_dataset.py"
new_filename = (filename.split(sep = "-")[-1]).split(sep = ".")[0] + ".py"
os.rename(filename, new_filename)