默認情況下,TLJH使用的是經典的Jupyter Notebook交互界面,但在TLJH中還提供了其他兩種交互界面供用戶選擇:
1. JupyterLab:https://jupyterlab.readthedocs.io/en/stable/
2. nteract:https://nteract.io/
-
臨時修改
當第一次進入Jupyter Hub時,可以注意到URL的格式爲: /user/<username>/tree其中/tree表示使用經典的Jupyter Notebook交互界面
/user/<username>/lab:表示使用JupyterLab
/user/<username>/nteract:表示使用nteract
通過改變URL,可以在三種交互界面間進行轉換
-
修改默認交互界面
作爲管理員,可以通過修改config.yaml文件修改默認打開的JupyterHub交互界面,操作步驟如下:
1、以管理員身份登錄, 打開命令行,若使用JupyterHub作爲默認,則輸入命令:
sudo tljh-config set user_environment.default_app jupyterlab
2、若使用nteract作爲默認,則輸入命令:
sudo tljh-config set user_environment.default_app nteract
3、 重新啓動JupyterHub
sudo tljh-config reload hub
在用戶重新啓動服務之後,就會進入默認界面
JupyterLab
nteract
下一節介紹計算資源(RAM&CPU&Space)的分配和限制~
參考鏈接:
https://tljh.jupyter.org/en/latest/howto/env/notebook-interfaces.html