How to disable terminals in TLJH
See original GitHub issueHi,
I was trying to disable the terminals as described in Custom jupyterhub_config.py snippets but for some reason it did not work for me.
I created a python file named jupyterhub_noterminals_config.py
in /opt/tljh/config/jupyterhub_config.d
with file permissions -rw-r--r--
(owner is root) and containing the single line: c.NotebookApp.terminals_enabled = False
When I reload the configuration with sudo tljh-config reload
the terminals are still visible for existing and new users. The terminals are also enabled for all users when I reboot. I found no obvious error message in the JupyterHub logs.
The only way I managed to disable terminals was to change both boolean parameters in line 1282 in /opt/tljh/user/lib/python3.6/site-packages/notebook/notebookapp.py
from True
to False
and then reboot.
What did I miss?
Thank you in advance.
ps1: installed TLJH with bootstrap.py (commit 8ec3fab) ps2# Related issue in jupyterhub
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top GitHub Comments
Hi,
Thanks to your hint I found a solution:
jupyter --paths
(mentioned in this issue)jupyter notebook --generate-config
(described here). This file is generated into the admin’s .jupyter directory (listed first in the config paths)c.NotebookApp.terminals_enabled = True
in the generated jupyter_notebook_config.pysudo
to/opt/tljh/user/etc/jupyter
(listed second in the config paths) and changed it’s entry fromTrue
toFalse
@woschmid awesome! Glad you have that working 😃
Starting and stopping a user’s server should work instead of having to reboot the machine, since notebook server reads the config on each start.
I’m going to close this now since we’ve figured out what works for you. Thank you for posting a detailed solution for the next person who finds this issue! ❤️