- bokeh
import json import pyodide from js import Bokeh, console, JSON from bokeh.embed import json_item from bokeh.plotting import figure from bokeh.resources import CDN students = ['Alice', 'Bob', 'Mattew', 'Sally'] counts = [6, 9, 8, 5] p = figure(x_range=students, height=350, title="Students marks", toolbar_location=None, tools="") p.vbar(x=students, top=counts, width=0.7) p.xgrid.grid_line_color = None p.y_range.start = 0 p_json = json.dumps(json_item(p, "chart")) Bokeh.embed.embed_item(JSON.parse(p_json))