ImportError: cannot import name 'Box' from 'bokeh.models'

Hi, I am currently using bokeh version 2.4.3 and from reading some posts, it seems that I am having issues with the compatibility of panel and bokeh.

I am getting an import error as below:

ImportError: cannot import name ‘Box’ from ‘bokeh.models’

What could be the solution for this. I have tried to install Bokeh version 2.4.0 as well.


Which version of Panel are you using? With Bokeh<3 you should use Panel<1.

I still get the error despite having these versions of Bokeh and Panel.

Can you give me the output of pip list or conda list?

i tried doing conda update -all and re-installed panel and it works now. thank you.