Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,22 @@ conda install -c conda-forge plopp
```
````
`````

## Interactive figures in JupyterLab

Interactive figures (`%matplotlib widget`) can fail to render in JupyterLab 4.4 and later,
with math text parse errors, blank figures, or kernel crashes.
JupyterLab routes widget messages over kernel subshells, which ipykernel 7 and later
service on their own threads.
Drawing a live canvas then races with figure creation during cell execution,
and Matplotlib is not thread-safe
(see [ipympl#610](https://github.com/matplotlib/ipympl/issues/610)).

A lock added in ipympl removes the math text parse errors, but the blank figures and
crashes remain, since the canvas frame and resize handlers still run concurrently with
drawing.
Until that is addressed, either

- set `commsOverSubshells` to `disabled` in the JupyterLab settings editor and restart
JupyterLab (the setting only applies to newly connected kernels), or
- install `ipykernel<7`.
Loading