I made the change on 07_meta.ipynb in my fork of fastcore, and after I run nbdev_preview, I run git diff and there are some auto changes to _modidx.py file. Should this be happening?
You should run nbdev_install_hooks. That will remove that metadata added to the notebook for you. Also make sure you update to the latest fastcore, nbdev, and execnb versions. Thanks for being so thorough!
I tried to pip uninstall nbdev and reinstall it again, and pip install -U nbdev and run nbdev_install_hooks. Still got this same error message. What else should I try?
In order to see whether nbdev_preview can work in the end, I comment out all the places where I import and use my lib debuggable, but still can’t get nbdev_preview to work properly.
Thanks again to Jeremy and Hamel for your quality work - nbdev is so well built that is easy to understand what it is doing and to hack on it for a gitlab port. I am always impressed with the work Jeremy does and with the brilliant people in the community that surounds him.
I create a new nbdev project from an empty repo and put utils.ipynb into the repo, and it works. But when I put use_kwargs.ipynb back in, the same error appeared.
Then, I noticed one thing which is the key to cause the error. I have #|default_exp utils without actually #|export anything. After I removed #|default_exp utils, no more error.