Skip to content

stop notebook on error #251

Open
Open

Description

@elamre

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?

Activity

  1. cosmos72 commented on Aug 5, 2022

    @cosmos72
    Member

    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 ?

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions