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

Already on GitHub? Sign in to your account

Notebook does not exist and permalinks #1843

mcelrath opened this Issue Jun 4, 2012 · 1 comment


None yet
1 participant

mcelrath commented Jun 4, 2012

When the IPython kernel is killed, existing Notebook sessions may display the following message:

  • The kernel has died, would you like to restart it? If you do not restart the kernel, you will be able to save the notebook, but running code will not work until the notebook is reopened.

This can leave the user in a very nasty state in which he may still work on his notebook, but be unable to save his work because the kernel displays the message "Notebook does not exist". This error is only briefly flashed in the upper right of the browser window, easily leaving the user without knowing that his work is not saving properly. (I just did a lot of work on a notebook in this state...) Worse, there is no way to save the file now, as the "save" capability asks the kernel for the .ipynb file.

This can be simply mitigated by using the same URL/hash for the same notebook, rather than generating a new hash and URL for each notebook, each time IPython is restarted. Why not store this hash in the .ipynb file, so that browser sessions can persist across kernel restarts? This has the added benefit that links to notebooks ("permalinks") may be stored elsewhere.

Loss of the kernel shouldn't cause the user to be unable to save his work, under any circumstances.

I'm using the latest git code, updated this morning.

@mcelrath mcelrath closed this Jun 4, 2012

mcelrath commented Jun 4, 2012

Dup, see #1844. Sorry...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment