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

14 Replies, 1537 Views

Yo, `p2j` is another solid option if you wanna convert py to ipynb programmatically.

It’s a bit simpler than `jupytext` but gets the job done. Just:
```bash
p2j your_script.py
```

Only downside? Doesn’t handle super complex scripts well. But for basic stuff, it’s fire.

Messages In This Thread



Users browsing this thread: 1 Guest(s)