DevBarreto
DevBarreto

Reputation: 113

How to hide the 'Quit' Button on Jupyter Notebook server?

I have a jupyter notebook server where other people have access to and I'd like to hide the 'Quit' button: 'Quit' button from all users in order to avoid server shutdown by accident.

How can I do it?

Upvotes: 11

Views: 2109

Answers (1)

Ethan T
Ethan T

Reputation: 1490

You want the c.NotebookApp.quit_button option in your jupyter_notebook_config.py file. The line to add is:

c.NotebookApp.quit_button = False

If you don't already have this file, create a new one by running:

jupyter notebook --generate-config

If you create the sample config file using that command, you should already see a commented-out version of the quit_button option. Uncomment it and set it to false.

Upvotes: 9

Related Questions