Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Override PythonPath in a notebook run #85

Open
yellowbean opened this issue Jun 16, 2024 · 0 comments
Open

Override PythonPath in a notebook run #85

yellowbean opened this issue Jun 16, 2024 · 0 comments

Comments

@yellowbean
Copy link

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

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.

Is there a way that to add PythonPath to the pytest-notebook which will force notebook to load local package ?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant