Skip to article frontmatterSkip to article content

Unresponsive Notebook

Try restarting the kernel if you have errors related to execution of code, such as the notebook not running properly.

Restarting the Kernel

If your notebook becomes unresponsive, you can try to restart the kernel.

Restart a kernel in notebook

Restarting Your Own Server

All users can restart their own servers. To do so, start by going to the control panel.

Control Panel button

Click the Stop My Server button.

Stop My Server button

Once the server has stopped and the Stop My Server button is no longer visible, click the My Server button to restart the server.

Start My Server button

Restarting Student Servers

Users with elevated privileges can restart other users’ servers. To restart a student’s server, first go to the control panel.

Control Panel button

Click on the Admin button at the top of the page. If you do not see this button, you do not have elevated privileges.

After clicking the Admin button, you will see the admin panel. Usernames have been obfuscated here. To search for a user, you can use find (type Control+F or Command+F). An individual’s username is the same as their CalNet ID. When you have found the desired user, click the stop server button in the user’s row.

Admin dashboard

After clicking the stop server button, you can click the start server button in the user’s row.

Slow Code Execution

In general, this issue could be attributed to the varied programming practices adopted that might have slowed the operation of the hub. Check whether your code does any of the following:

If they are relevant, try fixing these issues by improving the programming practices or by reducing the size of the dataset.

4xx and 5xx errors

A user’s Lab workspace might become unusable (e.g. it opens a notebook or workspace that is impossible to get out of). You have couple of options before you escalate this issue to us:

What if restarting the kernel is not solving spawn pending error message?

You can check if the output files are causing the ipynb files (in the case of python notebooks) to be bloated. If that be the case then you can run the following command to clear the output files which is causing this issue.

jupyter nbconvert --clear-output --inplace filename.ipynb

503 Errors

Sorry, that you had to face this error! This error could be due to some of our stability improvements. Try restarting your server and wait for few minutes to see whether the issue still persists. If yes, raise a github issue.

403 Errors

This error could be due to multiple reasons outlined below.

Unknown Errors

If you see “An unknown error occurred while loading this notebook”, try opening a new terminal from your server and run the following command:

rm -f ~/.local/share/jupyter/nbsignatures.db

If the error still persists, raise a github issue.

Kernels Dying

Kernel deaths are a common result of your server running out of memory. As soon as you exceed your memory allocation, your kernel most probably will die because of the lack of availability of virtual memory or swap space. It is most likely due to a bug in your code.

Stop Running Kernels and Terminals

In Jupyter Lab, click the icon at the far left depicting a square within a circle. It displays open tabs, running kernels and language servers, and open terminals. Hover your mouse over any entry and a close icon (X) will appear. Click on the close icon to shut down that entry.