jupyter / help

:sparkles: Need some help or have some questions? Please visit our Discourse page.
https://discourse.jupyter.org
291 stars 97 forks source link

Display cells in order of actual execution #102

Open triccare opened 7 years ago

triccare commented 7 years ago

Question/Request: Can I, in some form, display cells in the order that they have actually been executed?

If not, then an enhancement request: When trying things out, if the notebook could have a view option to display cells in order of execution would be really handy. Especially when modification of a distance previous cell is needed to try something in a current shell. A couple of acceptable options would be:

  1. A simple popup/new tab/new window with a static view.
  2. A view toggle of the page itself. The "full" version would be that whatever cell was last executed, now appears at the bottom of the page, with an option of jumping back to the bottom when executed (default option). This is effectively a history view.
minrk commented 7 years ago

If you are using the IPython kernel, you can save the actual execution history to a notebook with %notebook magic:

%notebook history.ipynb

and then open the generated notebook.

rsvp commented 7 years ago

I had been rearranging the cells manually, and then restarting the kernel with cleared outputs to get a cleanly ordered executed sequence.

So the history feature is really nice, yet one also consider the pedagogical sequence which clarifies the notebook as a linear presentation.