Bokeh-Pynotes-Growth

Sat 17 May 2025
# https://docs.bokeh.org/en/latest/docs/first_steps/first_steps_1.html
# https://docs.bokeh.org/en/latest/_images/notebook_inline.png
# !pip install jupyter_bokeh
!pip show | grep "Version:"
WARNING: ERROR: Please provide a package name or names.

# !pip install bokeh
x = [1, 2, 3, 4, 5, 6, 7]
y = [
    0,
    220,
    380,
    500,
    540,
    540,
    590,
]
from bokeh.plotting import figure
from bokeh.io import output_notebook
# create a new plot with a title and axis labels
p = figure(
    title         = "My Pynotes Growth", 
    x_axis_label  = 'x', 
    y_axis_label  = 'y'
)
# add a line renderer with legend and line thickness to the plot
p.line(x, y, legend_label="Temp.", line_width=2)
GlyphRenderer(
id = 'p1125', …)
# show the results
show(p, notebook_handle=True)
Gtk-Message: 20:33:52.612: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.

(opera:4012177): Gtk-WARNING **: 20:33:52.668: GTK+ module /snap/opera/346/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 20:33:52.668: Failed to load module "canberra-gtk-module"

(opera:4012177): Gtk-WARNING **: 20:33:52.669: GTK+ module /snap/opera/346/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 20:33:52.669: Failed to load module "canberra-gtk-module"
Fontconfig error: Cannot load default config file: No such file: (null)
[4012177:4012177:1203/203353.271460:ERROR:interface_endpoint_client.cc(725)] Message 0 rejected by interface blink.mojom.WidgetHost
[4012177:4012177:1203/203353.272102:ERROR:interface_endpoint_client.cc(725)] Message 2 rejected by interface blink.mojom.Widget
[4012177:4012177:1203/203353.615034:ERROR:CONSOLE(2)] "Uncaught (in promise) [object Object]", source: chrome://startpage/main.js (2)


Score: 10

Category: plot