-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Plots not shown in HTML export for "vscode+notebook" renderer #4953
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
Comments
@marthacryan can you please check if this is connected with / fixed by changes in the release candidate? |
@gvwilson Tried this out on master branch and it looks to still be present. I'm seeing this output when I run the nbconvert command: |
I think this should be fixed by #5096. |
I'm also experiencing this related problem: I work in VSCode and I can not see the interactive plots in https://nbviewer.org/, despite using "vscode+notebook". I think this was working before upgrading to version 6: indeed, #5096 mentions as cause #4822 that was part of the 6.0.0 release. Downgrading to plotly<6 solved the issue. @marthacryan I hope your PR with the fix gets merged soon! |
@marthacryan, update to 549b457 version: the only keyword that works for all VSCode and nbviewer, plotly<6.0.0 or plotly>6.0.1 is |
I found a fix for this! @danieleongari would you be able to test that out by any chance? My PR is #5154. |
Hurray, working as expected! "jupyterlab", # only visible in VSCode
"vscode", # only visible in VSCode
"notebook", # both VSCode and nbviewer
"vscode+notebook", # both VSCode and nbviewer
"notebook_connected", # both VSCode and nbviewer
"colab", # both VSCode and nbviewer https://nbviewer.org/github/danieleongari/nbviewer_test/blob/main/notebook_v6pr5154.ipynb Thanks a lot @marthacryan |
Environment data
Version: 1.96.2 (user setup)
OS: Windows 11 Pro
Jupyter extension version: 2025.1.2024121801
Python Expension Version: 2024.22.1
Steps to reproduce
Expected behaviour
Plots are visible when exporting to HTML
Actual Behaviour
Plots are shown in the notebook but they are not shown in the HTLM file
Side note: I am aware of microsoft/vscode-jupyter#6999 indeed i am using the solution found in that issue
The text was updated successfully, but these errors were encountered: