When building the docs nbdev runs all cells containing import statements, so it's in our best interest to isolate the imports in separate cells so that other code like tests isn't run when building the docs. This adds a check to pre-commit that will fail if there are such cells and will print the notebook path which contains them.
These are mostly changes to the notebooks, however in two modules we were running the following:
When building the docs nbdev runs all cells containing import statements, so it's in our best interest to isolate the imports in separate cells so that other code like tests isn't run when building the docs. This adds a check to pre-commit that will fail if there are such cells and will print the notebook path which contains them.
These are mostly changes to the notebooks, however in two modules we were running the following:
which I'm guessing was unintended and so this deletes that.