Closed FlorinAndrei closed 1 year ago
Plotly 5.10.0
Thanks for filing this issue and sorry you are running into this
pip list
against the python envJupyter->Logging
verbose
Jupyter
output panel.Regular Python env.
Thanks, will try this at my end.
After upgrading to the latest VSCode 1.77.0, the latest VSCode extensions, and Plotly 5.14.0, the code example does not crash anymore in VSCode when running remotely over SSH.
However, mouse click events are not captured properly by the Plotly FigureWidget()
in there. The widget has the ability to track mouse events, and can capture the coordinates of clicks. This works fine in the original Jupyter server with Chrome, it does not work at all in VSCode. I may be able to put together a proof of concept.
How do you want to proceed? Keep this issue open, or open another issue for the mouse clicks?
er upgrading to the latest VSCode 1.77.0, the latest VSCode extensions, and Plotly 5.14.0, the code example does not crash anymore in VSCode when running remotely over SSH.
Thank you for getting back with an update.
Keep this issue open, or open another issue for the mouse clicks?
Very sorry for missing this update, please could you file a seperate issue.
Applies To
What happened?
Running latest VSCode on Win10. Connecting remotely via the SSH plugin to an Ubuntu 22.04 machine. The notebooks run on Ubuntu.
I am following this article to build a GUI with ipywidgets:
https://towardsdatascience.com/how-to-build-a-custom-labeler-in-python-with-ipywidgets-and-plotly-f6cc1fd7e3cc
Using Plotly, I generate a FigureWidget, I fill it in with data from Plotly Express imshow(), then I try to display the FigureWidget:
This will make the notebook crash when I move the mouse over the displayed figure. I am asked to optionally save the notebook after the crash. There is actually no way to close the crashed notebook, I have to close the remote connection altogether.
If I run the code in the regular Jupyter Notebook server on Linux, and access it from Win10 via Chrome, it does not crash.
If I do
display(img_trace)
directly, bypassing the Plotly FigureWidget, the crash never happens in VSCode. It looks likego.FigureWidget()
makes VSCode crash.VS Code Version
Version: 1.76.2 (user setup) Commit: ee2b180d582a7f601fa6ecfdad8d9fd269ab1884 Date: 2023-03-14T17:55:54.936Z Electron: 19.1.11 Chromium: 102.0.5005.196 Node.js: 16.14.2 V8: 10.2.154.26-electron.0 OS: Windows_NT x64 10.0.19044 Sandboxed: No
Jupyter Extension Version
v2023.2.1200692131
Jupyter logs
Coding Language and Runtime Version
Python 3.10.6
Language Extension Version (if applicable)
v2023.4.1
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Remote