microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.28k stars 286 forks source link

plotly.js outdated version #15234

Open GP-Quinten opened 6 months ago

GP-Quinten commented 6 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 6 months ago

Actually I used fig.show(renderer='notebook') and it worked. So maybe you just need to modify this.

image