I’m working on a module with poetry with a directory structure like
./
/my_module
(module files)
/tests
test_thing.py
/jupyter
demo.ipynb
In the test files and jupyter notebooks there is import code like
from my_module import thingy, other_thingy
Now from the project root poetry run pytest
works without issue, but invoking jupyter lab via poetry run jupyter lab
and then running the notebook results in No module named my_module
error. Why is the module on the path for pytest and not jupyter?