Support "Save" and "Help" buttons in Bokeh plots
Steps to reproduce the issue:
-
In a console or notebook, create a Bokeh plot e.g:
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) -
Click the "Save" button. Nothing happens.
-
Click the "Help" button. Nothing happens.
Expected or desired behavior:
If I click the "Save" button, Positron should display a file dialog and save the file.
If I click the "Help" button, a browser should open to the help page (or a confirmation modal?).
Were there any error messages in the UI, Output panel, or Developer Tools console?
Console logs when clicking "Save":
Ignored call to 'prompt()'. The document is sandboxed, and the 'allow-modals' keyword is not set.
doit @ bokeh-3.4.2.min.js:673
(anonymous) @ bokeh-3.4.2.min.js:473
s @ bokeh-3.4.2.min.js:224
emit @ bokeh-3.4.2.min.js:181
_clicked @ bokeh-3.4.2.min.js:474
on_tap @ bokeh-3.4.2.min.js:465
on_tap @ bokeh-3.4.2.min.js:466
_pointer_up @ bokeh-3.4.2.min.js:466
Console logs when clicking "Help":
bokeh-3.4.2.min.js:475 Blocked opening 'https://docs.bokeh.org/en/latest/docs/user_guide/interaction/tools.html' in a new window because the request was made in a sandboxed frame whose 'allow-popups' permission is not set.
doit @ bokeh-3.4.2.min.js:475
(anonymous) @ bokeh-3.4.2.min.js:473
s @ bokeh-3.4.2.min.js:224
emit @ bokeh-3.4.2.min.js:181
_clicked @ bokeh-3.4.2.min.js:474
on_tap @ bokeh-3.4.2.min.js:465
on_tap @ bokeh-3.4.2.min.js:466
_pointer_up @ bokeh-3.4.2.min.js:466
Probably some overlap with #4087?
is the problem sovled?
and how to sovle?
My vscode doesn't even have a console log when I interact with the save button
Not yet @Pengsqi but improvements for this are coming in #4377
I have been debug for 5 workdays,with my poor skill of coding. This mail saved my time to do my main job. THXI've been engaged in debugging for the past five workdays, hampered somewhat by my limited coding proficiency. This email has significantly streamlined my process, allowing me to reallocate time towards my primary job responsibilities. THX.
---- Replied Message ---- | From | Julia @.> | | Date | 08/19/2024 22:41 | | To | posit-dev/positron @.> | | Cc | Pengsqi @.>, Mention @.> | | Subject | Re: [posit-dev/positron] Support "Save" and "Help" buttons in Bokeh plots (Issue #4235) |
Not yet @Pengsqi but improvements for this are coming in #4377
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>
Verified Fixed
Positron Version(s) : 2024.08.0-65
OS Version : OSX
Test scenario(s)
Verified fixed in the console/plots pane.
Link(s) to TestRail test cases run or created: N/A