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

Is sharing state between cells and expected and testable use case? #214

Open
jonathanstathakis opened this issue Dec 4, 2024 · 1 comment

Comments

@jonathanstathakis
Copy link

As title. I very often work with notebooks which first generate a dataset then proceed to analyse it across a number of interdependent cells. I would assume that most users would have a similar pattern. I have however found that testing a notebook fails unless I import all cell dependencies into each cell, which to me is an anti-pattern.

Am I missing a configuration which allows me to use the notebook global scope within each cell/test? I admit I am not an expert at the inner workings of ipython notebooks.

@takluyver
Copy link
Member

takluyver commented Dec 4, 2024 via email

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

2 participants