Configuration JupyterLab in Virtual Environment

0

Hi, when I use jupyterlab locally, I can install different extensions or configure custom settings (e.g. shortcuts). However doing the same in the cloud on the environment machine works only for one session. If the environment machine is suspended and restarted again, the reconfiguration has to be done again. Is there a way to make permanent custom changes in jupyterlab that won't be reset after restart?

질문됨 2년 전193회 조회
1개 답변
0

Hi there!

The reason you're seeing this behaviour is the underlying EC2 instance that runs JupyterLab gets terminated when you stop the notebook instance.

You can utilise lifecycle configuration script which is a bash script that runs when the EC2 instance spins back up, in this script, you can re-install extensions so your environment can be set-up properly when you open JupyterLab.

Below links provide examples on how to achieve this:

https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html

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

AWS
BenH
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠