nbconvert within notebook code example Example: nbconvert python $ jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb