CIMCB / cimcb

cimcb is a package containing the necessary tools for the statistical analysis of untargeted and targeted metabolomics data.
MIT License
9 stars 3 forks source link

Issue with widgetbox in Bokeh #6

Open GhsJahanmir opened 11 months ago

GhsJahanmir commented 11 months ago

Hi, This repository is very useful. However, after installation of cimcb, when I tried to import it, I got the following error. I appreciate any suggestion to tackle with it.

Traceback (most recent call last): File "", line 1, in File "C:\Users\user\AppData\Roaming\Python\Python311\site-packages\cimcb__init.py", line 3, in from . import bootstrap File "C:\Users\user\AppData\Roaming\Python\Python311\site-packages\cimcb\bootstrap\init__.py", line 2, in from .BC import BC File "C:\Users\user\AppData\Roaming\Python\Python311\site-packages\cimcb\bootstrap\BC.py", line 7, in from bokeh.layouts import widgetbox, gridplot, column, row, layout ImportError: cannot import name 'widgetbox' from 'bokeh.layouts' (C:\ProgramData\anaconda3\Lib\site-packages\bokeh\layouts.py)

Best,

MordicusEtCubitus commented 2 months ago

I had the same issue when trying to run a bokeh v2 code with bokeh v3

The bokeh migration guide says:

The WidgetBox model and associated convenience function widgetbox have been removed. Use row, column, and grid layouts instead.

See : https://github.com/bokeh/bokeh/wiki/Migration-Guides#remove-300

The answer is late but it may help any in their web search for the same issue