yes, i should have put the pieces together. here is a minimum reproducible example:
i have a file called test.py
which looks like:
from bokeh.models import Div
from bokeh.util.compiler import JavaScript
class TestDiv(Div):
def __init__(self):
super(Div, self).__init__(text="")
__implementation__ = JavaScript("")
then, in a jupyter notebook, i have this:
from bokeh.io import output_notebook
from bokeh.plotting import show
from test import TestDiv
output_notebook(hide_banner=True)
print(TestDiv())
show(TestDiv())
i get this output:
TestDiv(id='1012', ...)
Javascript Error: Model 'test.TestDiv' does not exist. This could be due to a widget or a custom model not being registered before first usage.
i realize this is differnet from the error i had initially, but i still can’t figure out why i get this. i found this thread but couldn’t find anything that helps
I’m using Bokeh v2.4.3, on macOS. this error is on multiple browsers (Safari, Chrome, FF)
i don’t see any errors in the JS console