Open yellowbean opened 5 months ago
Hi, Great work ! Thanks that's very helpful !
While I'm having an issue, the notebooks in project serves as examples. The notebooks are saved in folder docs/source/nbsample
docs/source/nbsample
mypackage/* docs/source/nbsample
When running
pytest docs/source/nbsample --nb-force-regen --import-mode=importlib
But it seems the code inside the notebook
import mypackage
are not able import local package mypackage.
import
mypackage
Is there a way that to add PythonPath to the pytest-notebook which will force notebook to load local package ?
pytest-notebook
Hi, Great work ! Thanks that's very helpful !
While I'm having an issue, the notebooks in project serves as examples. The notebooks are saved in folder
docs/source/nbsample
When running
But it seems the code inside the notebook
are not able
import
local packagemypackage
.Is there a way that to add PythonPath to the
pytest-notebook
which will force notebook to load local package ?