JupyterLab 3 troubleshooting
Troubleshooting for JupyterLab 3 and 4
File save error
In rare cases, one of the database files used internally by JupyterLab may become corrupted, preventing changes from being saved. You may see an error similar to the following in the user interface:
File Save Error for 10_Excercise_v1.ipynb
Unexpected error while saving file: files/10_Exercise/10_Excercise_v1.ipynb HTTP 500: Internal Server Error (Unexpected error while saving file: files/10_Exercise/10_Excercise_v1.ipynb database disk image is malformed)
If you encounter this, try the following steps:
Open new terminal window, and run
jupyter lab path. The output will include a line similar toApplication directory: /opt/conda/share/jupyter/labUsing the application directory path from the previous step, run the following command:
rm <app_dir_path>/../nbsignatures.dbExample:rm /opt/conda/share/jupyter/lab/../nbsignatures.dbRestart the application
JupyterLab freezes when opening a specific file
A corrupted file may cause JupyterLab to freeze when it is opened. This can create the following cycle:
You open the file and the entire interface freezes.
You restart the application, but JupyterLab attempts to reopen the same file during startup, causing the interface to freeze again.
To resolve the issue, rename the problematic file in the Nuvolos File navigator and restart the application. Because JupyterLab will no longer be able to locate that file automatically, the interface should start normally.
Running a Flask application and serving it to JupyterLab
You can run a Flask web server application and make it accessible from JupyterLab.
Components that may be required:
nodejs(optional, install via conda if needed)nodejsis only required for certain JupyterLab development tasks, such as building JupyterLab or working with source extensions. Most modern prebuilt extensions do not requirenodejs. Ifnodejsis needed, check the documentation for your specific JupyterLab version to confirm the supported version.
Install the jupyter-server-proxy extension.
Flask version
>= 2.2.0is suggested.
Additional tools that may be useful:
We suggest also looking at the
jupyterlab_iframeextension.
Modify your flask application code
Add the following snippet to your Flask application code:
Last updated
Was this helpful?