Local notebook creation
Python to IPYNB
Paste a Python script to create a valid notebook. Lines beginning with `# %%` start a new code cell.
No code is executed.
How cell splitting works
A line beginning with `# %%` starts a new code cell. A line beginning with `# %% [markdown]` starts a Markdown cell; comment markers in that cell are removed to create readable notebook text.
Without markers, the full script becomes one code cell. The result is a valid, unexecuted nbformat 4 notebook created in this browser.
What conversion does not infer
The tool does not guess cell boundaries from functions, blank lines, or comments. It also does not execute the script, add outputs, install packages, or recover a prior notebook's metadata.
Review the created notebook and choose a kernel before running it in Jupyter or VS Code.