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?

demandé il y a 2 ans193 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions