-
Notifications
You must be signed in to change notification settings - Fork 383
Plots not shown in HTML export for default Plotly renderer #6999
Copy link
Copy link
Closed
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugnotebook-import-exportnotebook-workflowIssues that interrupt expected or desirable behaviorIssues that interrupt expected or desirable behavior
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable bugnotebook-import-exportnotebook-workflowIssues that interrupt expected or desirable behaviorIssues that interrupt expected or desirable behavior
Environment data
Expected behaviour
Plots are visible when exporting to HTML
Actual behaviour
Plots are not shown (and there is no track of it in the HTML source code)
Steps to reproduce:
The temporary notebook for exporting (%localappdata%\temp<UUID>\export.ipynb) already misses the expected output.
Switching the Plotly renderer to notebook using
fig.show(renderer='notebook')provides the expected plot output in the exported HTMLOn a side note, the iframe / iframe_connected renderer types don't produce any plot output in VS Code but the export to HTML works as expected. It seems that iframes are not working/are not supported in VS Code right now (it has worked a while back) - maybe worth another bug entry.
Export to PDF probably has the same issue - not checked.
Logs
Output for
Jupyterin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toJupyter)