aws / studio-lab-examples

Example notebooks for working with SageMaker Studio Lab. Sign up for an account at the link below!
https://studiolab.sagemaker.aws
Apache License 2.0
637 stars 185 forks source link

Code not executing & Terminal not loading up : Sagemaker studio lab #274

Open ishan-rattan opened 3 months ago

ishan-rattan commented 3 months ago

Describe the bug

Hi All,

I am executing the code in Sagemaker Studio Lab via Jupyter Notebook but the the code is not working at all. It shows that code is being executed but it does not complete the execution. Just seeing the [*] indefinitely!

Same is the case with the terminal window. The terminal is not loading up, the cursor blinks but the terminal remains blank!

Please help with this issue.

Screenshot 2024-07-05 143537

MicheleMonclova commented 2 months ago

hi, in order to really diagnose your issue I would need a lot more information. are you using GPU or CPU? What code is breaking or is it all breaking? Have you tried restarting your server? Your environment may have got into an unstable state. You can try resetting it with some lines you can find in the FAQ pasted below: Q: How do I refresh my environment? Switch to base conda environment: conda activate base List all conda environments available in your account: conda list envs Delete all the conda environments except environment named 'base': conda remove -n "env_name" --all Delete all sub-directories from user folder: rm -rf /home/studio-lab-user/* Restart project/runtime. Go to project page, stop instance and restart.

ishan-rattan commented 2 months ago

Hi,

I tried using both CPU & GPU. Right now, I tried again on CPU but same results.

No, the code is simply not completing the execution after I press the "Play" button. The execution is stuck.

I have tried to restart the project multiple times but no improvement so far.

I am not able to refresh the environment as I cannot type anything in the terminal, it just wouldn't allow me to type anything.

I am attaching another picture of the Jupyter Notebook. As you can see, the code execution is stuck! It just shows [*] indefinitely.

Screenshot 2024-07-10 092931