An Azure machine learning service for building and deploying models.
The behavior described is consistent with notebook connectivity issues in Azure Machine Learning studio that rely on WebSocket connections.
Use these checks and fixes:
- Verify WebSocket connectivity
- Notebook execution and interaction require WebSocket communication.
- Ensure the network or firewall allows WebSocket connections to:
-
*.instances.azureml.net -
*.instances.azureml.ms
-
- If behind a corporate firewall/proxy, ask the network administrator to confirm outbound WebSocket traffic to those hosts is not blocked.
- Check private endpoint / VNet setup (if used)
- If the workspace uses a private endpoint and the compute instance is deployed in a virtual network, it can only be accessed from within that VNet.
- If using custom DNS or a hosts file, ensure there is an entry for:
-
<instance-name>.<region>.instances.azureml.mspointing to the private IP of the workspace private endpoint.
-
- Sign out and back in (expired token)
- If the connection error is related to an expired token, sign out of Azure Machine Learning studio, sign back in, and then reopen the notebook.
- Check compute and kernel status
- In the notebook UI, verify the compute instance status indicator:
- Green: running
- Red: failed
- Black: stopped
- Light blue: creating/starting/restarting/setting up
- Gray: deleting/stopping
- Also check the kernel status indicator:
- Green: connected/idle/busy
- Gray: not connected
- If compute or kernel is not running/connected, start the compute instance and wait for the kernel to connect before interacting with the notebook.
- In the notebook UI, verify the compute instance status indicator:
- Try another network or machine
- If possible, open the same workspace and notebook from a different network (e.g., outside corporate network) or a different workstation.
- If it works elsewhere, this strongly indicates a local network/firewall or browser environment issue blocking WebSockets.
- Check Jupyter logs if kernel crashes
- If the kernel is crashing and causing the page to hang, use:
-
sudo journalctl -u jupyteron the compute instance to inspect Jupyter logs.
-
- If kernel issues persist, consider using a compute instance with more memory.
- If the kernel is crashing and causing the page to hang, use:
If after these steps notebooks still freeze while other files (like CSVs) open fine, focus on WebSocket/network restrictions and any private endpoint/DNS configuration, as those are the primary causes of notebook-only loading issues.
References: