1615070 : Problem with Jupyter notebook¶
Created: 2026-07-07T08:08:57Z - current status: open¶
Anonymized Summary:¶
A user reports an issue with Jupyter Notebook on [REDACTED] when using matplotlib magic commands (%matplotlib widget or %matplotlib ipympl). Plotting fails with the JavaScript error:
"Failed to load model class 'MPLCanvasModel' from 'jupyter-matplotlib'".
The issue occurs specifically in one of the XFEL environments.
Summary:¶
Inability to render plots interactively due to a frontend JavaScript error related to the ipympl backend in a JupyterHub environment.
---¶
Possible Solution/Next Steps:¶
-
Verify Backend Installation: Ensure
ipymplis installed in the affected environment:bash pip install --upgrade ipymplor (if using conda):bash conda install -c conda-forge ipympl -
Check JupyterLab Extensions: For JupyterLab users, confirm the
@jupyter-widgets/jupyterlab-managerextension is enabled:bash jupyter labextension listInstall if missing:bash jupyter labextension install @jupyter-widgets/jupyterlab-manager -
Environment-Specific Fixes:
- Restart the kernel after installing/upgrading packages.
-
Try switching to a different matplotlib backend temporarily (e.g.,
%matplotlib inline) to isolate the issue. -
Contact Support: If unresolved, reach out to the JupyterHub administrators ([REDACTED]) or the XFEL computing support team, specifying:
- Environment name (e.g.,
[xfel-environment]). - Exact error message and steps to reproduce.
Sources: None (based on general troubleshooting for ipympl errors).