Bokeh 2.3.3 Online
The team collected decibel levels from three key games in June 2021. They wanted to compare the noise levels against the previous "normal" season (2019).
pip install bokeh==2.3.3
or via conda:
conda install bokeh=2.3.3 -c conda-forge
| 2.3.3 | 3.x |
|-------|-----|
| output_notebook() | Same, but default theme changes |
| from bokeh.palettes import Viridis256 | Use Viridis256 from bokeh.palettes (still works) |
| p.legend.location = "top_left" | p.legend.location = "top_left" (same) |
| p.select_one("type": HoverTool) | p.select(type=HoverTool) (deprecation) |
The hover tooltip in Bokeh 2.3.3 received patches for: bokeh 2.3.3
from bokeh.plotting import figure, show from bokeh.io import output_notebookoutput_notebook() # or output_file("plot.html")
p = figure(title="Bokeh 2.3.3 Example", x_axis_label="X", y_axis_label="Y")
p.circle([1,2,3,4,5], [6,7,2,4,5], size=15, color="navy", alpha=0.6) The team collected decibel levels from three key
show(p)
from bokeh.models import ColumnDataSource from bokeh.plotting import figure, showdata = dict(x=[1,2,3], y=[4,5,6], color=["red","green","blue"]) source = ColumnDataSource(data) or via conda: conda install bokeh=2
p = figure() p.circle(x="x", y="y", color="color", size=10, source=source) show(p)