Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 769
DevBarreto Avatar asked Oct 15 '22 13:10

DevBarreto


1 Answers

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.

like image 112
Ethan T Avatar answered Oct 21 '22 07:10

Ethan T