Converting jupyter notebooks
Posted on 2025-04-17 in Trucs et astuces
You can export a notebook directly from the interface under File > Save and Export Notebook As. You can also do it in CLI with:
jupyter nbconvert --execute --to <FORMAT> my_notebook.ipynb
The --execute will execute the notebook to make sure all output cells are up to date. Many export formats are supported including: python, markdown, HTML and restructured text:
jupyter nbconvert --execute --to python my_notebook.ipynb jupyter nbconvert --execute --to markdown my_notebook.ipynb jupyter nbconvert --execute --to html my_notebook.ipynb jupyter nbconvert --execute --to rst my_notebook.ipynb