First off, I wanted to thank everybody involved with developing nbdev. It really does make my life as a researcher much much easier every day since I’ve started using it.
While developing a package for my current research project, I’ve recently started to receive the error code “Error: Notebooks and library are not in sync. Please run nbdev_export” during the CI workflow on github (see Screenshots below). I always run nbdev_prepare before committing any code to github, which automatically runs nbdev_export. I’ve tried running only nbdev_export as well, of course, (just like various other random attempts at trying to fix the issue), but I just can’t seem to find the root cause of the error. Maybe it is something really simple and I’m blind somehow. Sry, if that’s the case.
The error only started appearing 2 days ago. Before that, everything worked just fine. During the first commit, that lead to the mentioned error, I unfortunately added quite a few changes to my code at once. Most of them were related to the index.ipynb, because I was building a meaningful README file. The package I’m building itself runs just fine. The local tests pass without any problem (and there are many of them) and I can install and run the package just fine on other hardware.
I have no idea, if this is in any way related to my problem, but I also receive the following warning whenever I run nbdev_prepare (it appeared already before the CI error started to happen):
This should be fixed by upgrading nbdev to the latest version locally. In general, issues in CI that you struggle to replicate locally are often fixed by using the same version