Closed muellerzr closed 3 years ago
Are you still working on this? Should this be left open?
@hamelsmu I passively am. If you/Jeremy see enough value in it I can post my code here, otherwise I may develop it separately.
Today I learned about JupyText
You can convert any python file to a JupyterNotebook with the command jupytext --to ipynb somefile.py
In your directory with .py files you can run:
#!/bin/bash
for f in [^_]*.py; do # .py files except those with underscore in front
jupytext --to ipynb $f
done
This will convert all python files to notebooks, excluding any file names that begin with an underscore! Let me know if you want to keep this open, but I'll close for now!
@hamelsmu this is awesome! May write a blog post or something about this, great find!
May write a blog post or something about this, great find!
That's a great idea! I particularly like your ideas you brought up in discord about building on this and inserting some additional nbdev things into the notebooks automatically for the user
Goal is to allow for quick and easy use/conversion from non-nbdev repositories into nbdev repositories. Will be looking into this