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

Enforce a top-down order of execution #3229

Open
jobevers opened this issue Jan 17, 2018 · 5 comments
Open

Enforce a top-down order of execution #3229

jobevers opened this issue Jan 17, 2018 · 5 comments
Milestone

Comments

@jobevers
Copy link

Is it possible to force a top-down order for cell execution? New cells to execute would only be at the bottom of them notebook and existing cells would essentially be immutable. Maybe if a user wanted to edit or re-execute a cell, a copy could be made at the bottom and that new cell could be executed.

Doing this makes a notebook reproducible. The console has this behavior and its definitely nice being able to know when and what code was run.

@takluyver
Copy link
Member

If you did that, isn't it essentially just a console?

@Madhu94
Copy link
Contributor

Madhu94 commented Jan 17, 2018 via email

@takluyver
Copy link
Member

Oh neat, I hadn't seen that before. :-)

@jobevers
Copy link
Author

@Madhu94 that's awesome! Thanks! I'll give it a shot and see if its a good solution.

This sentence: "This prevents messy and difficult to maintain out-of-order execution which frequently occurs in vanilla Jupyter notebooks where each cell modifies the global state." captures exactly the problem I was looking for a solution for.

This also outlines the issue in more depth: https://multithreaded.stitchfix.com/blog/2017/07/26/nodebook/

@minrk minrk added this to the Reference milestone Jun 15, 2018
@jobevers
Copy link
Author

jobevers commented Feb 7, 2019

Looks like I'm not the only one who has this concern: https://www.youtube.com/watch?v=7jiPeIFXb6U
and https://twitter.com/jakevdp/status/935178916490223616?lang=en

I'm re-opening as nodebook didn't really provide much of satisfactory solution and I think it would be better if supported natively by the notebook.

@jobevers jobevers reopened this Feb 7, 2019
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

4 participants