-
Notifications
You must be signed in to change notification settings - Fork 92
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
freeze when rendering plotly with Python 3.12 #6033
Comments
Thanks for reporting this issue @PhilippFW! I can reproduce the issue with Python 3.12.8 using the following: Positron Version: 2025.01.0 (Universal) build 159 pip install pandas==2.2.3 plotly==5.24.1
import plotly.express as px
fig = px.bar(x=["a", "b", "c"], y=[1, 3, 2])
fig Python 3.12.8Python Console Debug Output
There's some suspect output in the dev tools console which I don't see for my Python 3.10.4 project. Python 3.12.8 Developer Tools Console Output...
[Extension Host] [HPM] Proxy created: / -> http://127.0.0.1:61370 (at Object.info (file:///Applications/Positron.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:80119:14))
ERR Cannot read properties of undefined (reading 'value'): TypeError: Cannot read properties of undefined (reading 'value')
at $ZGc2.lb (vscode-file://vscode-app/Applications/Positron.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:659108:33)
at vscode-file://vscode-app/Applications/Positron.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:659139:14 Python 3.10.4Interestingly, all is well when I use Python 3.10.4, where I have the same versions of pandas and plotly installed in the environment. Python 3.10.4 Console Debug Output
Python 3.10.4 Developer Tools Console Output...
[Extension Host] [HPM] Proxy created: / -> http://127.0.0.1:61372 (at Object.info (file:///Applications/Positron.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:80119:14))
workbench.desktop.main.js:659157 An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.
mountTo @ workbench.desktop.main.js:659157
workbench.desktop.main.js:18386 DEBUG Webview(1ff24a7d-c108-4115-8559-ba65a82ebe67): webview ready
index-external.html?id=1ff24a7d-c108-4115-8559-ba65a82ebe67&origin=vscode-file%3A%2F%2Fvscode-app&swVersion=4&extensionId=ms-python.python&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app:692 (Webview) set-uri: http://127.0.0.1:61373/ 1
index-external.html?id=1ff24a7d-c108-4115-8559-ba65a82ebe67&origin=vscode-file%3A%2F%2Fvscode-app&swVersion=4&extensionId=ms-python.python&platform=electron&vscode-resource-base-authority=vscode-resource.vscode-cdn.net&parentOrigin=vscode-file%3A%2F%2Fvscode-app:778 (Webview) iframe src: http://127.0.0.1:61373/ |
System details:
Windows 11
Positron and OS details:
Positron Version: 2025.01.0 (system setup) build 159
Code - OSS Version: 1.95.0
Commit: bc8820b
Date: 2025-01-09T23:34:24.616Z
Electron: 32.2.1
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631
Interpreter details:
Python 3.12.8
Describe the issue:
The console freezes when rendering plots
-> this issue started happening when removing positron 2024.07 and reinstalling with 2025.01
-> repeated install of 2025.01, but issue persits
Steps to reproduce the issue:
plotly figure creation
freezes when rendering
code runs perfectly well, creating figures, when excuting from anaconda console (but outside of positron)
Expected or desired behavior:
plot rendering, not freezing
Were there any error messages in the UI, Output panel, or Developer Tools console?
from output panel 'python 3.12.8 (console)':
2025-01-17 16:01:08.331 [debug] >>> SEND comm_open [shell]: {"target_name":"positron.help","comm_id":"positron-help-python-2-20bdf30e","data":{}}
2025-01-17 16:01:08.332 [info] Set initial console width to 138
2025-01-17 16:01:08.332 [debug] >>> SEND comm_msg [shell]: {"comm_id":"positron-ui-python-1-901dbdd8","data":{"jsonrpc":"2.0","method":"call_method","params":{"method":"setConsoleWidth","params":[138]}}}
2025-01-17 16:01:11.897 [debug] <<< RECV comm_msg [iopub]: {"comm_id":"positron-ui-python-1-901dbdd8","data":{"jsonrpc":"2.0","method":"show_html_file","params":{"height":0,"is_plot":true,"path":"127.0.0.1:50636","title":""}}}
from output panel 'window':
2025-01-17 16:01:08.242 [debug] [Runtime startup] Saving workspace sessions (1)
2025-01-17 16:01:08.316 [info] Creating positron.help client 'positron-help-python-2-20bdf30e'...
2025-01-17 16:01:11.903 [error] Failed to show HTML file 127.0.0.1:50636: Error: Path does not exist: 127.0.0.1:50636
The text was updated successfully, but these errors were encountered: