Bokeh is an interactive visualization library for modern web browsers. It helps create versatile, interactive plots, dashboards, and data applications from Python, targeting web browsers for rendering. It is currently at version 3.9.0 and typically releases minor versions every few months with major versions less frequently.
pip install bokehVerified import paths — ran on the pinned version, not inferred.
This quickstart creates a simple interactive sine wave plot and displays it in your default web browser. For more complex interactions or live updates, consider using Bokeh server.
Remove explicit `output_file`/`output_notebook` calls. Rely on `show()` to display the plot. For Bokeh server applications, run `bokeh serve your_app.py`.
Always wrap your data in `ColumnDataSource(data=...)` and reference columns by string names (e.g., `p.line('x', 'y', source=source)`).Structure your application logic to add components to `curdoc().add_root()` and define callbacks using `curdoc().on_change()` or `source.on_change()`. Run with `bokeh serve your_app.py`.
Use `from bokeh.layouts import row, column, layout` and compose your plots/widgets using these functions instead of `gridplot`.
Install Bokeh using pip: `pip install bokeh` or with conda: `conda install bokeh`.
Correct the import and function call: `from bokeh.plotting import figure, show` then `p = figure(...)` and `show(p)`.
Update the `figure()` call to use `width` and `height` instead of `plot_width` and `plot_height`. For example: `p = figure(width=800, height=400)`.
Ensure `from bokeh.io import output_notebook` and call `output_notebook()` at the beginning of your notebook. Consider upgrading Jupyter Notebook/Lab and Bokeh to the latest versions. For JupyterLab, ensure the `jupyterlab_bokeh` extension is installed if using older Bokeh versions or experiencing persistent issues.
Update your code to use `bokeh.tile_utils` instead of `bokeh.tile_providers` for tile provider access, or if using a library like `pandas_bokeh` that relies on the old module, downgrade Bokeh to version 3.4.x or earlier, or consider alternative plotting libraries built on Bokeh that are actively maintained and updated for newer Bokeh versions.
No dependency data recorded yet.