Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Displaying same figure with show and BokehModel #161

Open
axil opened this issue Jun 27, 2022 · 0 comments
Open

Displaying same figure with show and BokehModel #161

axil opened this issue Jun 27, 2022 · 0 comments

Comments

@axil
Copy link
Contributor

axil commented Jun 27, 2022

The following sequence of commands leads to a strangely looking error message:

from bokeh.io import output_notebook
from bokeh.resources import Resources, INLINE
from jupyter_bokeh import BokehModel
from bokeh.plotting import figure, output_file, show
output_notebook()

p = figure(plot_height=100)
p.scatter([1,2,3], [4,5,7])
show(p)
<displays p>

BokehModel(p)
<displays p>

p1 = figure(plot_height=100)
p1.scatter([1,2,3], [4,5,7])
<displays p1 then breaks the plot in the previous cell>

image

I understand that the real reason for this behavior is displaying the same figure with both show and BokehModel, but I would expect the error message to be in cell [4], not in cell [5].

Originally I thought it is because of my patch fixing the copy-pasting in jupyter, but no, it is just the same in the original bokeh==2.4.3 + jupyter_bokeh==3.0.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant