bokeh / jupyter_bokeh

An extension for rendering Bokeh content in JupyterLab notebooks
BSD 3-Clause "New" or "Revised" License
253 stars 48 forks source link

Concerning browser warnings with JupyterLab 3.6.7 and jupyter_bokeh 3.0.7 #198

Closed mcg1969 closed 7 months ago

mcg1969 commented 7 months ago

Sorry for the screenshot, it's surprisingly difficult to copy and paste compact text from the browser inspector. These browser warnings appear when jupyterlab 3.6.7 and jupyter_bokeh 3.0.7 are installed from Anaconda's defaults.

From my own work on labextensions, I believe it is because the npm "caret" operators "^" in this case are not correct—or perhaps more precisely, the JupyterLab ecosystem doesn't properly encode that there are breaking boundaries between 3.x and 4.x versions into its nodejs metadata. So 4.x packages are being improperly pulled into the build. The solution is to use ~ operators for all JupyterLab packages that the build depends on.

I'm not certain how dangerous these warnings are in this particular case.

Screenshot 2024-02-28 at 6 18 45 PM
mattpap commented 7 months ago

This happens because jupyter_bokeh 4.0 was published to fix this issue, but publishing to conda-forge was delayed.

mattpap commented 7 months ago

This should be resolved now that jupyter_bokeh 4.0 is published on conda-forge.

mcg1969 commented 7 months ago

Alas the conda-forge build is not compatible with jlab 4.0.x in my experience; it seems to require 4.1