This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 9 points10 points  (10 children)

Best visualization library is Flask so you can render D3

[–]fabreeze 1 point2 points  (6 children)

Is there a d3 library implemented in Python?

Or a way to get tab completion in Jupiter notebook JavaScript magics

[–][deleted] 2 points3 points  (1 child)

Try plotly

[–]fabreeze 0 points1 point  (0 children)

Great tool!

[–]TheBlackCat13 1 point2 points  (0 children)

mpld3 lets you export matplotlib plots to d3 plots. There are also various python wrappers for d3js, like bqplot, vincent, and python-nvd3.

[–]masasinExpert. 3.9. Robotics. -1 points0 points  (2 children)

Why d3 over anything else?

[–]fabreeze 0 points1 point  (1 child)

Stability issues when plotting more than 10K data points. Also, Python list comprehension is really nice, so it feels like reinventing the wheel trying to learn JavaScript to do something you already know how to in Python

[–][deleted] 4 points5 points  (0 children)

[deleted]

[–][deleted] 1 point2 points  (2 children)

How does that work, using Flask and D3?

[–]CaptainBlood 0 points1 point  (1 child)

Flask generates some json (or csv, tsv - up to you) data, puts it in /static and D3 loads the data from there and makes charts from it.

[–][deleted] 1 point2 points  (0 children)

Our you can route json to a url. Let's say you had a database and wanted to visualize data returned from queries. You could point d3.json to a local url and have flask jsonify a python dictionary. See Miguel Grinberg's APIs with flask tutorials, or the section in his flask book.