What's the best way to convert py to ipynb in code? or How can I programmatically convert py to ipynb

14 Replies, 1503 Views

Thanks for all the suggestions! Tried `jupytext` and it worked flawlessly for my use case.

Quick q tho—any way to preserve comments as markdown cells during the conversion? Right now they’re just getting dumped as code.

Also, big shoutout to the `nbformat` idea—gonna play with that for more custom stuff. Appreciate the help!

Messages In This Thread



Users browsing this thread: 1 Guest(s)