Code converter

IPYNB to Python converter

To convert IPYNB to Python, drop your IPYNB file in the box below. It converts straight away; press Download to save the Python. It all happens in your browser, so your file stays on your device.

Converted on this device, never uploaded

What changes

IPYNB to PythonWhat happens
Notebooks readJupyter nbformat 4, and 3
CellsUp to 5,000, in order
CellsMarked # %%, which VS Code, Spyder and Jupytext read as cells
MarkdownKept as # comments
Magics%matplotlib, %%time and !pip lines commented out, so the script runs in plain Python
OutputsLeft out

How to convert IPYNB to Python

  1. Add your IPYNB. Drop the file in the box, or click to choose it. It becomes Python straight away.
  2. Check the result. Look at the preview and the size. The defaults are right for most files.
  3. Download. Press Download to save the Python.
Why Python

Get the code out of a Jupyter notebook as a Python script you can run, diff or import.

Questions

Yes: Jupytext and VS Code read the # %% cells back as cells; the outputs are gone.

You get an .r or .jl script instead, with the same cell marks.

No. It is read and converted in your browser and never uploaded.

No. The conversion happens right in your browser, so your file stays on your device. There is no account to make, either.

Related conversions