Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Difference between running with testbook(execute=True) and converting to python and running with nbconvert? #160

Open
dyollb opened this issue Oct 24, 2024 · 0 comments

Comments

@dyollb
Copy link

dyollb commented Oct 24, 2024

I am having trouble using testbook.

I am running some functions, which require that a context is setup in the same thread (and process).
I have a pytest fixture (scope="session", autouse=True) to initialize the context.

  • When I run the notebook using testbook it looks like the context is not setup.
  • If I run the same notebook (by converting it to Python code using nbconvert.PythonExporter) using runpy, it works as expected

Am I missing some configuration or execution policy option? Or is my fixture injected in the wrong order?

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

No branches or pull requests

1 participant