Skip to content

Doesn't seem to work with jupyter notebook #150

Open
@cpsievert

Description

@cpsievert

After doing pip install jupyter_bokeh, jupyter notebook, then running the following in a notebook cell:

from bokeh.plotting import figure
from jupyter_bokeh import BokehModel
    
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
p = figure(title="Simple line example", x_axis_label="x", y_axis_label="y")
p.line(x, y, legend_label="Temp.", line_width=2)
BokehModel(p)

I get no output and the following JS errors:

Screen Shot 2022-03-22 at 2 47 13 PM

Am I doing something wrong? I have a feeling this might be related to the fact that the notebook extension config is pointing to a seemingly non-existant nbextension/static (should it be nbextension instead)?

"src": "nbextension/static",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions