Bokeh-Lineplot-1
Sat 17 May 2025
!pip show bokeh | grep "Version:"
Version: 3.6.1
from bokeh.plotting import figure, output_file, show
from bokeh.io import output_notebook
from bokeh.models import ColumnDataSource
import pandas as pd
# Set Bokeh output to notebook
output_notebook()
# Sample 1: Line Plot
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
line_plot = figure(title="Sample Line Plot", x_axis_label='X-Axis', y_axis_label='Y-Axis')
line_plot.line(x, y, legend_label="Line", line_width=2)
# Display both plots
show(line_plot)
Score: 5
Category: bokeh