You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using "Create new view for output" with a cell that outputs a Bokeh plot, it just doubles the plot in the original cell output, with no plot output in the new View. If a second "Output View" is created, the plot is tripled in the original, and so on...
Edit: the same happens with "New View for Notebook".
Other outputs (such as strings in the example below) are instead correctly sent to the new "child" Views.
Interestingly, splitting the original cell (Shift+Ctrl+-), while making disappear all the plots in the original cell output, correctly updates the first created "child" View. All the other "child" Views remain instead without any plot. This splitting also makes "orphan" all child Views (they are no longer linked/updated to the original cell).
Code to reproduce the issue (tested on a trusted notebook, in a fresh conda environment with jupyterlab 1.2.5, bokeh 1.4.0, python 3.7.6):
from bokeh.io import output_notebook, show
from bokeh.plotting import figure
output_notebook()
print("First line")
p = figure()
p.circle([1, 2, 3, 4, 5], [6, 7, 2, 4, 5])
show(p)
print("Second line")
The text was updated successfully, but these errors were encountered:
mpanighel
changed the title
"Create new view for output" not working with bokeh plots output
Creating "New View" for notebook/output does not work with bokeh plots output
Jan 18, 2020
When using "Create new view for output" with a cell that outputs a Bokeh plot, it just doubles the plot in the original cell output, with no plot output in the new View. If a second "Output View" is created, the plot is tripled in the original, and so on...
Edit: the same happens with "New View for Notebook".
The issue is the same as this (with holoviews).
Other outputs (such as strings in the example below) are instead correctly sent to the new "child" Views.
Interestingly, splitting the original cell (Shift+Ctrl+-), while making disappear all the plots in the original cell output, correctly updates the first created "child" View. All the other "child" Views remain instead without any plot. This splitting also makes "orphan" all child Views (they are no longer linked/updated to the original cell).
Code to reproduce the issue (tested on a trusted notebook, in a fresh conda environment with
jupyterlab 1.2.5
,bokeh 1.4.0
,python 3.7.6
):The text was updated successfully, but these errors were encountered: