Questions on nbdev

If you’re using an editable install of nbdev, you can git pull the latest nbdev code and this should start working for you. This new nbdev code should be available via the regular pip installer in a couple of weeks.

If you can’t use an editable install, you can add the thing you’re patching to __all__. e.g.:
_all_ = ['Tensor'].

There’s an autogenerated file called _nbdev.py inside your lib folder. I pushed the changes done in my library but forgot push the changes occured in _nbdev.py file (auto-generated). After pushing those changes as well, it solved my issue. But lately, it’s occurring more frequently I don’t know any other cause for the same.

1 Like

I see that if I delete a notebook from my docs, and then perform:

nbdev_clean_nbs
nbdev_build_lib
nbdev_build_docs

The documentation files generated from the deleted notebook are not deleted. Is there a way to delete them automatically from the library using nbdev?

No nbdev allows you to write code outside notebooks for your library also. Therefore we don’t delete files for you with the assumption that you may have created that manually.

1 Like

It makes sense, thanks for replying @hamelsmu !

They are not deleted, but notice they are ignored by git (see .gitignore)