!jupyter nbconvert --to script config_template.ipynb
# credit to Stack Overflow user in the source link # shell command or ! + command in ipython jupyter nbconvert --to script [YOUR_NOTEBOOK].ipynb