From 6c0ae9a1eff7c64a7eeb45690659e3099cdb81a1 Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Mon, 30 Jul 2018 17:26:04 -0700 Subject: [PATCH] Use tljh-config for notebook interface switching --- docs/howto/notebook-interfaces.rst | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/docs/howto/notebook-interfaces.rst b/docs/howto/notebook-interfaces.rst index e5a168f..f6e69ea 100644 --- a/docs/howto/notebook-interfaces.rst +++ b/docs/howto/notebook-interfaces.rst @@ -32,33 +32,23 @@ Changing the default user interface You can change the default interface users get when they log in by modifying ``config.yaml`` as an admin user. -#. Open the ``config.yaml`` file. - - .. code-block:: bash - - sudo nano /opt/tljh/config.yaml - -#. To launch **JupyterLab** when users log in, add the following snippet to the config +#. To launch **JupyterLab** when users log in, run the following in an admin console: .. code-block:: yaml - user_environment: - default_app: jupyterlab + sudo -E tljh-config set user_environment.default_app jupyterlab -#. Alternatively, to launch **nteract** when users log in, add the following snippet to the config +#. Alternatively, to launch **nteract** when users log in, run the following in the admin console: .. code-block:: yaml - user_environment: - default_app: nteract - -#. Save and exit the editor. With ``nano``, you can do this by pressing ``Ctrl-X``. + sudo -E tljh-config set user_environment.default_app nteract #. Apply the changes by restarting JupyterHub. This should not disrupt current users. .. code-block:: yaml - sudo systemctl restart jupyterhub + sudo -E tljh-config reload If this causes problems, check the :ref:`troubleshoot_logs_jupyterhub` for clues on what went wrong.