microsoft / vscode-jupyter

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

Feature requerst: Add data visualization in Data Viewer #14223

Closed Chris-Tang6 closed 7 months ago

Chris-Tang6 commented 11 months ago

Issue Type

Feature Request

Description

When I debugging pytorch code, I often check the tensor value.

And I really like the value visualization function (SciView) in Pycharm, cuz with the different color I can quickly know if the feature tensor is normal.

I would be very thankful if VSCode can add this feature too🤗🤗

image

image

roblourens commented 11 months ago

Can you tell me how the coloring works, I don't think I follow it?

Chris-Tang6 commented 11 months ago

Can you tell me how the coloring works, I don't think I follow it?

In my eyes:

for each column in the matrix, it will get the _minval and _maxval,

assign _colorweight = 0 to all min_val places, assign 1 to all max_val places.

As to others values, eg. x, their color_weight = (x - min_val) / (max_val - min_val)

In this way, it get all color weight in one column, we can do the same on others columns.

In the coloring step, when color_weight change from 0 to 1, fill color from blue to red.

costabm commented 7 months ago

See a related feature request here

amunger commented 7 months ago

closing as dupe of https://github.com/microsoft/vscode-jupyter/issues/13113