For a no-frills solution, this script might help:
```python
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell().run_cell(open("script.py").read())
```
Save the output as .ipynb. Not perfect, but gets you 80% there.
---
```python
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell().run_cell(open("script.py").read())
```
Save the output as .ipynb. Not perfect, but gets you 80% there.
---
