posit-dev / positron

Positron, a next-generation data science IDE
Other
2.49k stars 77 forks source link

Bokeh plots show in the Viewer pane for notebooks #4234

Open seeM opened 1 month ago

seeM commented 1 month ago

Steps to reproduce the issue:

  1. Create a Python Jupyter notebook.
  2. Create a Bokeh plot e.g. by executing a cell with:

    from bokeh.plotting import figure, show
    p = figure(title="Simple line example", x_axis_label='x', y_axis_label='y')
    p.line([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], legend_label="Temp.", line_width=2)
    show(p)
  3. It will display in the Viewer pane.

Expected or desired behavior:

The plot should display as a cell output.

Were there any error messages in the UI, Output panel, or Developer Tools console?

Nope.

nstrayer commented 1 month ago

I actually can't get this to show up in the viewer pane even. It just gets swallowed into the void. I bet I introduced some logic in #4178 that is responsible.