Hey! I've used `jupytext` before to convert py to ipynb in code, and it works like a charm.
Just install it (`pip install jupytext`), then run:
```python
jupytext --to notebook your_script.py
```
Super lightweight and no manual steps. Plus, it keeps the notebook structure clean.
If you need more control, check out their docs—tons of options for metadata and cell types.
Just install it (`pip install jupytext`), then run:
```python
jupytext --to notebook your_script.py
```
Super lightweight and no manual steps. Plus, it keeps the notebook structure clean.
If you need more control, check out their docs—tons of options for metadata and cell types.
