alan-turing-institute / setvis

A tool for visualising set membership and patterns of missingness in data
https://setvis.readthedocs.io
Apache License 2.0
4 stars 0 forks source link

Missing notebook plots #134

Closed ots22 closed 4 months ago

ots22 commented 4 months ago

After upgrading Bokeh, sometimes plots are 'missing' from notebook output cells. It looks like this:

Screenshot 2024-07-26 at 10 12 28

The web console shows the following error message when running the Tutorial 1 notebook:

Error rendering Bokeh items: Error: LinearAxis(p2299).major_label_overrides given invalid value: {"1":"0","2":"3 - 4","3":"4 - 5","4":"5 - 6","5":"6 - 7","6":"7 - 8","7":"8 - 9","8":"9 - 10","9":"10 - 11","10":"11 - 12","11":"12 - 13"}

I couldn't find anything obvious in the Bokeh docs about changes to major_label_overrides, and this previously worked with Bokeh 2.

It affects Bokeh 3.1 to 3.3 (3.0 fails for a different reason) and requiring Bokeh >=3.4 resolves it.

Output of pip freeze for a breaking environment.

ots22 commented 4 months ago

Fixed on #133 (never affected main)