-
-
Save hamelsmu/35be07d242f3f19063c3a3839127dc67 to your computer and use it in GitHub Desktop.
Don't use the CLI, use the method I suggested in the blog post π , I'm not certain that the CLI nbdev_export
supports this.
Tried also installing nbdev with conda or pip, since this AnswerDotAI/nbdev#1204 seems to be included in release 2.3.9 but still no success. These were in place of first input of the notebook, which installs nbdev 2.3.10. But none of them worked. Also inserted debug=True before name but still silent. What else could I try? Thanks.
Per the blog post, install from github pip install git+https://github.com/fastai/nbdev.git
Thanks, CLI was a fallback, the method in your blog post runs in 0.3 secs, but no app.py in the folder (or nowhere else). Relative or absolute paths like lib_path='/Users/cer/vc/projects/hfds-size/'
did not matter. Can't really figure out why it fails. In any case, thanks for the idea and blog post.
from nbdev.export import nb_export
nb_export('app.ipynb', lib_path='.', name='app')
the method in your blog post runs in 0.3 secs, but no app.py in the folder
It's hard to debug this way, if you would like to provide a minimally reproducible example it might be easier. The code in a repo format is on HFhub incase that helps. https://huggingface.co/spaces/hamel/hfspace_demo/tree/main
Tried also installing nbdev with conda or pip, since this PR#1024 seems to be included in release 2.3.9 but still no success. These were in place of first input of the notebook, which installs nbdev 2.3.10. But none of them worked. Also inserted
debug=Tru
e beforename
but still silent. What else could I try? Thanks.