Jupyter Bokeh is a Jupyter extension that enables Bokeh plots to render interactively within Jupyter notebooks and JupyterLab environments. It acts as a bridge, ensuring that Bokeh's rich interactive visualizations work seamlessly. The current version is 4.0.5, and it follows Bokeh's release cadence, typically updating to support new Bokeh features and Jupyter environments.
pip install jupyter-bokehVerified import paths — ran on the pinned version, not inferred.
After installing `jupyter-bokeh`, Bokeh plots automatically render interactively in Jupyter environments. Simply create a Bokeh plot using `bokeh.plotting` and call `show()`.
Ensure the Jupyter extension is enabled: `jupyter nbextension enable --py --sys-prefix jupyter_bokeh` for Notebook or `jupyter labextension install @jupyter-widgets/jupyterlab-manager` for JupyterLab. Restart your Jupyter server afterwards.
Always check the `jupyter-bokeh` documentation/PyPI page for compatible `bokeh` and `ipywidgets` versions. Upgrade both `jupyter-bokeh` and its dependencies (`pip install --upgrade jupyter-bokeh bokeh ipywidgets`) to ensure compatibility.
Check your browser's developer console for JavaScript errors. Ensure no ad-blockers or browser extensions are interfering with content delivery network (CDN) requests. Try clearing your browser cache or using a different browser. Verify the Jupyter extension is enabled.
Ensure that your `Bokeh` callbacks are correctly set up, especially if they involve `CustomJS` or `ColumnDataSource`. For complex interactive applications within Jupyter, consider using `Panel` with Bokeh which offers more robust server-side callback mechanisms.