在笔记本启动时安装jupyterlab扩展软件

问题描述 投票:0回答:1

每次我的笔记本关机并重新启动时,我都会丢失插件,并不得不从终端重新安装。 有什么方法可以设置jupyterlab扩展在启动sagemaker笔记本时自动安装?

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

如果有任何建议,我将不胜感激

amazon-web-services jupyter-notebook amazon-sagemaker jupyter-lab
1个回答
1
投票

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

有一些用于安装JupyterLab扩展[1]以及NBExtension[2]的Lifecycle Configuration脚本示例,可用于此目的。

[1] https:/github.comaws-samplesamazon-agemsaker-notebook-instance-lifecycle-config-samplesblobmasterscriptsinstall-lab-extensionon-start.sh。

[2] https:/github.comaws-samplesamazon-agemsaker-notebook-instance-lifecycle-config-samplesblobmasterscriptsinstall-nb-extensionon-start.sh。

© www.soinside.com 2019 - 2024. All rights reserved.