Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PyToIpynbNew to Visual Studio Code? Get it now.
PyToIpynb

PyToIpynb

Maor Barak

|
13,497 installs
| (0) | Free
save current python file as ipynb
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

pytoipynb

Save your python file as jupyter notebook

Features

saves the current python file as ipynb to the same location as the python file

Requirements

The python file needs to be with format:

# To add a new cell, type '# %%'
# To add a new markdown cell, type '# %% [markdown]'

Usage

On an open python file ctrl+shift+p -> Save to .ipynb

1.1.0

fix the export output,
in code:

  • added output
  • added execution_count
  • delete empty cells

in markdoun:

  • removing first line whitespace

1.1.1

add metadata

1.1.2

bug fix, spaces after '# %%' working.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft