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?

posta 2 anni fa193 visualizzazioni
1 Risposta
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
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande