microsoft / vscode-notebook-renderers

MIT License
115 stars 36 forks source link

plotly.js outdated version #194

Closed GP-Quinten closed 8 months ago

GP-Quinten commented 8 months ago

Environment data

Expected behaviour

Some Latest plotly features are not working with the version of plotly.js proposed in VS code for jupyter notebooks. Can you update it?

I noticed it doing a sankey plot with a new argument called 'align' released in latest plotly version v5.19.0. In the following picture I expect the sankey plot to align to the left, but it does not as I have plotly.js v2.20.0 instead of v2.29.1 for example. I tried it in Jupyterlab and it works as expected. It is the following picture. You can read plotly.js version in the top right corner.

image

Actual behaviour

And Here is the final figure I get in VS code.

image

Steps to reproduce:

If needed, I can share with you the code I used.

GP-Quinten commented 8 months ago

Actually fig.show(renderer='notebook') works fine. So you may only need to solve this

DonJayamanne commented 8 months ago

Duplicate of https://github.com/microsoft/vscode-jupyter/issues/15234