PSLmodels / Cost-of-Capital-Calculator

A cost of capital and effective tax rate calculator
https://ccc.pslmodels.org
Other
17 stars 33 forks source link

Bokeh Panel class gone in v3.0.3 #374

Closed rickecon closed 1 year ago

rickecon commented 1 year ago

This doesn't need to be updated now. But I wanted to post it as you think about updating to allow Bokeh v3.0.3.

I was running CCC code from a conda environment with Bokeh v3.0.3 and I got the following import failure:

ImportError: cannot import name 'Panel' from 'bokeh.models.widgets' (/Users/richardevans/opt/anaconda3/envs/tn-bustax-dev/lib/python3.10/site-packages/bokeh/models/widgets/__init__.py)

This StackOverflow thread suggests that the bokeh.models.widgets.Panel class has been replaced in Bokeh v3.0.3 with bokeh.model.TabPanel (see Bokeh 3.0.3 documentation). This looks like the whole widgets section has been moved/removed.

I noted that the Panel and Tabs classes only appear in CCC in calculator.py

cc: @jdebacker

jdebacker commented 1 year ago

Related to Issue #354

jdebacker commented 1 year ago

bokeh.models.widgets is available in the latest release of Bokeh (3.2.2) (see docs here)