【问题标题】:installing jupyterlab extensions on notebook startup在笔记本启动时安装 jupyterlab 扩展
【发布时间】:2020-05-04 16:50:31
【问题描述】:

每次我的笔记本关闭并重新启动时,我都会丢失插件并且必须从终端重新安装它们 有没有办法将 jupyterlab 扩展设置为在启动我的 sagemaker 笔记本时自动安装? 我要安装的插件是:

jupyter nbextension enable --py widgetsnbextension
jupyter labextension install @jupyter-widgets/jupyterlab-manager

任何见解将不胜感激

【问题讨论】:

    标签: amazon-web-services jupyter-notebook amazon-sagemaker jupyter-lab


    【解决方案1】:

    生命周期配置可用于在您的笔记本实例每次启动时安装扩展。

    有用于安装 JupyterLab 扩展 [1] 以及可用于此目的的 NBExtension [2] 的示例生命周期配置脚本。

    [1]https://github.com/aws-samples/amazon-sagemaker-notebook-instance-lifecycle-config-samples/blob/master/scripts/install-lab-extension/on-start.sh

    [2]https://github.com/aws-samples/amazon-sagemaker-notebook-instance-lifecycle-config-samples/blob/master/scripts/install-nb-extension/on-start.sh

    【讨论】:

    • 我尝试遵循实验室扩展一,但由于启动时间超过 5 分钟,它在启动时一直失败。调查日志并没有发现任何不愉快的事情。我应该增加笔记本启动的超时时间吗?
    猜你喜欢
    • 1970-01-01
    • 2020-09-23
    • 1970-01-01
    • 2021-07-27
    • 2019-04-26
    • 1970-01-01
    • 2021-03-28
    • 2020-07-27
    • 1970-01-01
    相关资源
    最近更新 更多