Closed R-Palazzo closed 5 months ago
I was looking through our older issues around plots not rendering in VSCode Jupyter experience and starting close them out. The issue isn't related to any of the SDV libraries and requires just a single line code (which @R-Palazzo rightly points out involves just changing the renderer for plotly).
https://github.com/sdv-dev/SDV/issues/1734#issuecomment-2027740751
Environment Details
Error Description
When I run:
On my notebook on vscode, I can't see the figure.
Workaround
Doing:
fig.show(renderers='vscode')
instead offig.show()
should work.Modifying this line: https://github.com/sdv-dev/SDMetrics/blob/004fbbe59a4abca3de920ffee96f451a907f7186/sdmetrics/visualization.py#L34 To this:
pio.renderers.default = 'vscode+iframe'
fixes the issue on vscode