microsoft / vscode-jupyter

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

Data viewer rounding large integers to incorrect values #12538

Open repied opened 1 year ago

repied commented 1 year ago

Large integer are incorrectly displayed in the data viewer df =pd.DataFrame({'x':[400000000000000000001]})

Environment data

Expected behaviour

We should see 400000000000000000001 as in the interactive window image

Actual behaviour

We see 400000000000000000000 in the data viewer image

Steps to reproduce:

1 - type in a python interactive window : df =pd.DataFrame({'x':[400000000000000000001]}) 2 - open the JUPYTER:VARIABLES pane 3 - Click on the "Show variable snapshot in data viewer" icon near df

repied commented 1 year ago

same issue in regular notebooks, triggered by using style image

repied commented 1 year ago

Same issue in regular jupyter notebook (with a smaller value to make it a valid int64 image

amunger commented 8 months ago

likely due to either https://github.com/microsoft/vscode-jupyter/issues/11373 or https://github.com/microsoft/vscode-jupyter/issues/7426

DonJayamanne commented 8 months ago

@amunger I'd leave this issue open as both the other issues applies to floats, and this applies to bigints