2018-08-12 21:12:16 -07:00
|
|
|
.. _howto/env/notebook_interfaces:
|
2018-06-29 01:11:21 -07:00
|
|
|
|
2018-08-10 10:09:24 -07:00
|
|
|
=======================================
|
|
|
|
|
Change default User Interface for users
|
|
|
|
|
=======================================
|
2018-06-29 01:11:21 -07:00
|
|
|
|
|
|
|
|
By default, logging into TLJH puts you in the classic Jupyter Notebook interface
|
|
|
|
|
we all know and love. However, there are at least two other popular notebook
|
|
|
|
|
interfaces you can use:
|
|
|
|
|
|
|
|
|
|
1. `JupyterLab <http://jupyterlab.readthedocs.io/en/stable/>`_
|
|
|
|
|
2. `nteract <https://nteract.io/>`_
|
|
|
|
|
|
2018-07-05 17:51:51 -07:00
|
|
|
Both these interfaces are also shipped with tljh by default. You can try them
|
2018-06-29 01:11:21 -07:00
|
|
|
temporarily, or set them to be the default interface whenever you login.
|
|
|
|
|
|
2018-08-10 10:09:24 -07:00
|
|
|
Trying an alternate interface temporarily
|
|
|
|
|
=========================================
|
2018-06-29 01:11:21 -07:00
|
|
|
|
|
|
|
|
When you log in & start your server, by default the URL in your browser
|
|
|
|
|
will be something like ``/user/<username>/tree``. The ``/tree`` is what tells
|
|
|
|
|
the notebook server to give you the classic notebook interface.
|
|
|
|
|
|
2018-07-05 17:51:51 -07:00
|
|
|
* **For the JupyterLab interface**: change ``/tree`` to ``/lab``.
|
|
|
|
|
* **For the nteract interface**: change ``/tree`` to ``/nteract``
|
2018-06-29 01:11:21 -07:00
|
|
|
|
|
|
|
|
You can play around with them and see what fits your use cases best.
|
|
|
|
|
|
2018-07-05 17:51:51 -07:00
|
|
|
Changing the default user interface
|
2018-07-10 11:35:18 -07:00
|
|
|
===================================
|
2018-06-29 01:11:21 -07:00
|
|
|
|
|
|
|
|
You can change the default interface users get when they log in by modifying
|
|
|
|
|
``config.yaml`` as an admin user.
|
|
|
|
|
|
2018-07-30 17:26:04 -07:00
|
|
|
#. To launch **JupyterLab** when users log in, run the following in an admin console:
|
2018-06-29 01:11:21 -07:00
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
2018-08-12 21:52:04 -07:00
|
|
|
sudo tljh-config set user_environment.default_app jupyterlab
|
2018-06-29 01:11:21 -07:00
|
|
|
|
2018-07-30 17:26:04 -07:00
|
|
|
#. Alternatively, to launch **nteract** when users log in, run the following in the admin console:
|
2018-06-29 01:11:21 -07:00
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
2018-08-12 21:52:04 -07:00
|
|
|
sudo tljh-config set user_environment.default_app nteract
|
2018-06-29 01:11:21 -07:00
|
|
|
|
|
|
|
|
#. Apply the changes by restarting JupyterHub. This should not disrupt current users.
|
|
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
2018-08-12 21:52:04 -07:00
|
|
|
sudo tljh-config reload
|
2018-06-29 01:11:21 -07:00
|
|
|
|
|
|
|
|
If this causes problems, check the :ref:`troubleshoot_logs_jupyterhub` for clues
|
|
|
|
|
on what went wrong.
|
|
|
|
|
|
|
|
|
|
Users might have to restart their servers from control panel to get the new interface.
|