You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way for the notebook to stop running on error? It ignores my Panic statements (other than just printing out) and even os.Exit doesn't seem to do much. Am I missing somethign?
You want to stop a notebook server programmatically?
Executing os.Exit will cause gophernotes to exit, but jupyter (or whatever notebook frontend you are using) will just notice it,
show a message similar to
Kernel Restarting
The kernel appears to have died. It will restart automatically.
and start another gophernotes process.
So the solution, if any, is to send a ZMQ message from gophernotes to the notebook asking it to exit.
Spoiler: I have no idea if notebook's protocol define such a message. Maybe @sbinet ?
Activity
cosmos72 commentedon Aug 5, 2022
You want to stop a notebook server programmatically?
Executing
os.Exitwill cause gophernotes to exit, but jupyter (or whatever notebook frontend you are using) will just notice it,show a message similar to
and start another gophernotes process.
So the solution, if any, is to send a ZMQ message from gophernotes to the notebook asking it to exit.
Spoiler: I have no idea if notebook's protocol define such a message. Maybe @sbinet ?
sbinet commentedon Aug 17, 2022
seems possible at the protocol level: