【问题标题】:I installed a jupyterhub on my remote server, but when I access it, it shows jupyter notebook, not jupyter lab我在远程服务器上安装了一个 jupyterhub,但是当我访问它时,它显示 jupyter notebook,而不是 jupyter lab
【发布时间】:2021-12-14 04:44:55
【问题描述】:

我在 jupyter_config.py 中添加了c.Spawner.cmd = ['jupyter-labhub', '--notebook-dir', '/mnt/home']

我想要这个:

但它告诉我这个:

【问题讨论】:

    标签: jupyterhub


    【解决方案1】:

    您的网址是否以/tree 结尾?如果是这样,将“树”替换为实验室,例如/lab

    此外,请确保您在笔记本用户环境中安装了 jupyterlab,并且它与在笔记本和集线器上运行的 jupyter 版本兼容。

    如果一切都是使用最新版本的 jupyterhub/jupyterlab 设置的,则 jupyterlab 接口应该是默认的。无法将笔记本界面配置为默认界面,因此请确保您的规范中具有以下内容。来自JupyterHub docs

    如果您安装nbclassic 软件包,您还可以默认使用经典 UI,在新服务器上运行:这可能是在经典和新环境中支持用户的最佳方式。

    singleuser:
      defaultUrl: /tree/
      extraEnv:
        JUPYTERHUB_SINGLEUSER_APP: "jupyter_server.serverapp.ServerApp"
    

    相反,您可以设置defaultUrl: /lab/,尽管这应该是默认值。

    有关更多信息,请参阅 customizing the user interface 上的 JupyterHub 文档。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-10-14
      • 1970-01-01
      • 2020-03-24
      • 1970-01-01
      • 1970-01-01
      • 2021-08-17
      • 2019-06-17
      相关资源
      最近更新 更多