Skip to content

jupyter notebook shoudl open current server if existing. #9342

Open

Description

@Carreau

Came up during Jupyter Days education panel,

Apparently many student do not realise that Jupyter notebook start a new server, and once they close their last browser tab, they re-issue the command in a new terminal, leading to tens of started servers.

Some people thus ask wether jupyter notebook without parameters could be switched to open the browser if a current server is already opened. This would mean potentially making starting a (new) server a separate flag.

ping @ellisonbg

Activity

  1. Carreau commented on Mar 22, 2016

    @Carreau
    MemberAuthor

    I'm stupid, I don't know why I opened that here, like #9341 I'm tired .I'll migrate that later.

  2. takluyver commented on Mar 22, 2016

    @takluyver
    Member

    I already have the code to do that in nbopen - I'm happy for it to get merged into the notebook itself.

  3. Carreau commented on Mar 22, 2016

    @Carreau
    MemberAuthor

    Yeah, I think this is more a question of how to keep backward compatibility.
    We likely want:

    5.0 - current behavior with warning.
    6.0 - new behavior.

    ideas:

    • jupyter notebook-server to actually start a server ?
    • jupyter notebook start|stop|restart ?
  4. takluyver commented on Mar 22, 2016

    @takluyver
    Member

    I wouldn't worry too much about backwards compatibility. The only reason to run jupyter notebook foo.ipynb is to open that notebook in a browser, so it's probably not written into scripts much. I'd just make that check for an existing server and use it if available. We could have a --new-server flag or something to force it to start a new server. This is already how many programs (e.g. browsers) work.

    Having some kind of management interface probably makes sense (see also nbmanager), but it's more than just start/stop/restart, because there can be multiple servers running.

  5. added this to the not ipython milestone on Apr 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions