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

Creating "New View" for notebook/output does not work with bokeh plots output #7797

Open
mpanighel opened this issue Jan 18, 2020 · 5 comments
Milestone

Comments

@mpanighel
Copy link

mpanighel commented 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):

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")
@mpanighel 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
@vidartf
Copy link
Member

vidartf commented Jan 29, 2020

Would you mind cross-posting this onto holoviews repo so they can also be made aware of this? Or linking such an issue here if it already exists?

@maximlt
Copy link

maximlt commented Mar 30, 2020

I observe the same behaviour with bokeh 2.0.0 and jupyterlab 2.0.1.

@jasongrout
Copy link
Contributor

My guess is that this is more of a bokeh issue than a JupyterLab issue. Is there an issue in the bokeh repo where this discussion can happen?

@maximlt
Copy link

maximlt commented Mar 31, 2020

There a discussion here holoviz/pyviz_comms#3, that's a good start.

@fcollonval fcollonval added this to the Reference milestone Jul 28, 2021
@pnsvk
Copy link

pnsvk commented Jan 10, 2022

this seems to be a long pending one.. any updates / timelines / plans to prioritize this ?

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

6 participants