4-Bokeh-1

Sat 17 May 2025
import pyutil as pyu
pyu.get_local_pyinfo()
'conda env: ml312-2024; pyv: 3.12.7 | packaged by Anaconda, Inc. | (main, Oct  4 2024, 13:27:36) [GCC 11.2.0]'

!pip show bokeh | grep "Version:"
Version: 3.6.1
from bokeh.io import output_notebook

# Set Bokeh output to notebook
output_notebook()
Loading BokehJS ...
from bokeh.plotting import figure, show

p = figure(title="Simple Line Plot", x_axis_label="x", y_axis_label="y")
p.line([1, 2, 3], [4, 5, 6], legend_label="Line", line_width=2)
show(p)


Score: 5

Category: plot-compare