Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: CLI method for stopping servers #2350

Open
brookisme opened this issue Mar 29, 2017 · 5 comments
Open

Feature Request: CLI method for stopping servers #2350

brookisme opened this issue Mar 29, 2017 · 5 comments

Comments

@brookisme
Copy link
Contributor

Currently it seems that best method for killing running servers is http://stackoverflow.com/a/38513158

It would be nice to have something more direct. Perhaps...

$ jupyter notebook stop <PORT>
@takluyver
Copy link
Member

nbmanager can stop a notebook server on demand. Even if the GUI is not to your taste, it has a Python API module which can do the same thing. I agree that a command line interface would be good too.

@changhe3
Copy link

changhe3 commented Apr 5, 2017

If you run jupyter as a child of another process, sending a SIGINT is enough to shutdown the server.

@brookisme
Copy link
Contributor Author

@changhe3 The particular use case that brought this to my attention was running jupyter on a remote server and losing the connection. Of course had I been running it with tmux or screen it wouldn't be an issue but I don't do that 100% of the time

Finding the process-id and killing it is easy enough, and it wouldn't take much thought to write a bash-script to do this in one line, but it still seems like if there is a cli command for starting a notebook there should be one for stopping it :)

Just a thought. Feel free to close this if you aren't interested or don't have time to address it right now.

@gnestor
Copy link
Contributor

gnestor commented Apr 7, 2017

@brookisme Would you like to submit a PR for this feature? The jupyter notebook list subcommand is here for reference...

@brookisme
Copy link
Contributor Author

brookisme commented Apr 8, 2017

Hows this #2388?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants