Giter Site home page Giter Site logo

Comments (7)

xenirio avatar xenirio commented on April 28, 2024 1

Let me try for doing this feature.

from vscode-debug-visualizer.

Clement-Jean avatar Clement-Jean commented on April 28, 2024

Im curious about where are the other visualizers. im interested in doing this but I dont know where to start

from vscode-debug-visualizer.

hediet avatar hediet commented on April 28, 2024

Awesome ;) You can find them here. Reach out if you have questions!

from vscode-debug-visualizer.

hediet avatar hediet commented on April 28, 2024

I just added some documentation here.

from vscode-debug-visualizer.

hinogi avatar hinogi commented on April 28, 2024

@hediet Is this still relevant since there is already the grid visualization?

from vscode-debug-visualizer.

hediet avatar hediet commented on April 28, 2024

I think the grid visualization might suffer from performance for large matrices.
But yeah, the grid visualizer might be a replacement for this.

from vscode-debug-visualizer.

vedhasam avatar vedhasam commented on April 28, 2024

+1 for the open issue/the feature request of 'grid visualizer'.

Specifically my problem:
While trying to visualize a 2d np array (shape 80x75). I run into error
Could not parse evaluation result as JSON: Unexpected token ' in JSON,,,, ,,,,Used debug adapter: python.
Taking a hint from #82, if I try visualize(str(variable_name)) though, it outputs a string like the following

[[0.00093501 0.00093501 0.00093501 ... 0.00170146 0.00170146 0.00170146]
[0.00093501 0.00093501 0.00093501 ... 0.00170146 0.00170146 0.00170146]
[0.00093501 0.00093501 0.00093501 ... 0.00170146 0.00170146 0.00170146]
...
[0.00451131 0.00451131 0.00451131 ... 0.02732074 0.02732074 0.02732074]
[0.00451131 0.00451131 0.00451131 ... 0.02732074 0.02732074 0.02732074]
[0.00451131 0.00451131 0.00451131 ... 0.02732074 0.02732074 0.02732074]]

which is good (a little better, that at least there is no error), but it has a number of '...'., as you can see above.

Is it not possible to visualize the matrix directly using some kind of a colour map? Running visualize(variable_name[:10]) works (no error) but results in 10 line plots overlayed on top of one another, not a color map grid visualization. Kindly advise.

A related perhaps a separate issue, taking a hint from #82 I ran visualize(str(variable_name)) above, but I cannot run np.array(str(variable_name)) the errior I see in the visualizer is NameError: name 'np' is not defined, nor can I pass to visualize() import numpy as np; np.array(str(variable_name)).

from vscode-debug-visualizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.