Jupyter Notebook - Terminal Crashing

Unable to Open Terminal in Jupyter Lab

I’m trying to get started on the final quiz for this course, but whenever I try to open a terminal, it immediately closes the terminal tab.

I’ve followed the instructions provided, clicking on the Jupyter Lab on the top right corner and opening the instructions files in markdown preview. Next, I go to open a terminal by clicking the blue “+” button, click the terminal button, see a quick flash and am now looking at the instructions.md file again.

I tried disabling the “Simple” view (in the bottom left of the window), and going through the same steps. I see the terminal tab briefly display then close.

Browser console shows these errors after the terminal window crashes:

Firefox can’t establish a connection to the server at wss://s172-29-43-186p8888.lab-aws-production.deeplearning.ai/terminals/websocket/1. jlab_core.8aca991c1d97720da49a.js:1:1489245

The connection to wss://s172-29-43-186p8888.lab-aws-production.deeplearning.ai/terminals/websocket/1 was interrupted while the page was loading. jlab_core.8aca991c1d97720da49a.js:1:1489245

I’m using a Mac with Firefox, tried Chrome as well with no luck. Has anyone else experienced this issue? Any ideas how to fix it?

did you check your browser firewall settings or any third party blockers activated in your browsers you used?

Yes, I’ve disabled all pop up blockers. Firewall is disabled on my Mac. I even tried using my mobile phone hotspot instead of home internet. Same result, still no luck.

it could be aws server issue too.

@gent.spah can you check if for you labs are opening??

is Chris l.t. for this course?

Hi guys, I just opened a Lab at Team Software Engineering with AI course! I am not sure what the issue for you, but can you try again today and let us know!

Hey @gent.spah , thanks for looking into this. I’m still not able to open the Terminal in Jupyter Lab Notebook. Are you able to open a terminal session within the labs, that’s the issue I’m continuing to see.

Here are the exact steps I’m taking to recreate the issue. These steps are for a specific lab, but I’m seeing it for other labs as well.

  1. Open the Gen AI for Software Developers → Team Software with AI → Module 3 → Solving Versioning and Dependency conflicts with and LLM assignment.

  2. Click the “JupyterLab” link on the top right to open the lab in a new tab.

  3. Expand the folder tab on the left menu

  4. Click the blue + icon

  5. Click the “terminal” menu item

    Expected Result - a new tab opens with terminal where I can input commands

    Actual Result - a new tab appears for a brief second and closes. Also, I get these errors in the browser console:

GET wss://s172-29-64-99p8888.lab-aws-production.deeplearning.ai/terminals/websocket/1 NS_ERROR_WEBSOCKET_CONNECTION_REFUSED

Firefox can’t establish a connection to the server at wss://s172-29-64-99p8888.lab-aws-production.deeplearning.ai/terminals/websocket/1. jlab_core.8aca991c1d97720da49a.js:1:1489245

The connection to wss://s172-29-64-99p8888.lab-aws-production.deeplearning.ai/terminals/websocket/1 was interrupted while the page was loading. jlab_core.8aca991c1d97720da49a.js:1:1489245

Here is some steps I tried with no luck:

  • Different Hardware - Same result on a Macbook and Android Tablet
  • Different browsers - Same result in Chrome, Firefox, and Safari.
  • Different Internet Connections - Same result using Home internet or Mobile Hotspot.
  • Confirmed the firewall is disabled on my Mac.
  • Confirmed pop up blockers are disabled.

Any ideas?

Thank you for the detailed report. I just tried replicating the issue. However, it works and can load the terminal successfully. Can you confirm whether it’s still happening as I am unable to reproduce the issue?

1 Like

Better use chrome, try also on the question mark on the top right corner, try Reboot Server.

If the problems persists perhaps you might need to contact Coursera helpdesk because we are not facing this issue in our ends!

I tried it in Chrome (and Firefox) again. I am still able to recreate the issue :/.

I have no idea whats causing the problem perhaps coursera help desk may help, or maybe @chris.favila if he has any ideas about it!

Hi. Forwarding this to my colleague. Unfortunately, I don’t handle this course. Thanks.

Hi, sorry Chris, it seems to me you handle all of them here :grin: . I know there is a course and QA page somewhere, but couldn’t find it!

@gent.spah please look here for LT lead for courses on this mentor only thread:
https://community.deeplearning.ai/t/learning-technologist-lead-for-specializations/586590/1

1 Like

Thans @balaji.ambresh appreciated!