Live data from Hacker News

Bokeh – Interactive web visualization library in Python

bokeh.pydata.org

51–60 of 66 posts

Re: Bokeh – Interactive web visualization library in Python

#51
post #6

Are mouse hover interactions in the timeline (display value of selected point)? Don't see any references but otherwise this is a very interesting project.

Check out the Plotly APIs for hover - Here's an example: https://plot.ly/~alex/75/ https://plot.ly/api/python (Disclosure: I'm a dev at @Plotly)

Re: Bokeh – Interactive web visualization library in Python

#52
post #46

Earlier quoted context omitted.

Part of the 0.4 release is to incorporate the concept of abstract rendering - which means you render on the server, and then send the necessary information over to the client on demand. For example, if someone tries to scatter a billion points, instead of just drawing a useless point cloud, you would figure out where all the points fit inside your 512x512 canvas (or whatever size you have), figure out how all the poi…

I have a project involving multi-gigabyte datasets of line plot data. With your 0.4 release, will it be possible to show down-sampled subsets of these plots, with the ability to pan/zoom around and get more data on demand without having it all held in memory?

Well, we'll be able to do that without sending the data to the client, not sure if our implementation right now will work without loading the data into memory, though long term that is definitely the plan (we will leverage http://blaze.pydata.org/)

If you want to discuss further, please email bokeh@continuum.io

Re: Bokeh – Interactive web visualization library in Python

#53
post #9

As a "database guy" who uses Python for most things not bash, is this an approach for viz apps that would eliminate (most) of the need to muck about in JavaScript? D3 and its children produce some awesome visualizations, but the bandwidth does not exist for me to begin developing apps in a language I don't have much experience in. If something like Bokeh allows me to live mostly in Python, it becomes even more intere…

If you're looking to make scientific D3 graphs with Python, never touching anything close to javascript, you can also check out the Plotly Python API:

https://plot.ly/api/python

It was designed foremost to make graphs pertinent for scientific and engineering applications: https://plot.ly/~alex/76/

(Disclosure: I'm a dev @Plotly)

Re: Bokeh – Interactive web visualization library in Python

#54
post #46

Earlier quoted context omitted.

Part of the 0.4 release is to incorporate the concept of abstract rendering - which means you render on the server, and then send the necessary information over to the client on demand. For example, if someone tries to scatter a billion points, instead of just drawing a useless point cloud, you would figure out where all the points fit inside your 512x512 canvas (or whatever size you have), figure out how all the poi…

I have a project involving multi-gigabyte datasets of line plot data. With your 0.4 release, will it be possible to show down-sampled subsets of these plots, with the ability to pan/zoom around and get more data on demand without having it all held in memory?

The Python version of Abstract Rendering currently would load it all into memory. The Java version is based on the same algorithms would not. It routinely handles multi-gigabyte files and lets us know that the core algorithm can scale. We're working on getting the Python implementation to scale as well.

Re: Bokeh – Interactive web visualization library in Python

#55
post #18

Earlier quoted context omitted.

Here is a linked brushing example in the IPython notebook. http://nbviewer.ipython.org/urls/raw.github.com/ContinuumIO/...

For some reason I can't get any of the interactivity buttons to work. EDIT: Ok, everything but the zoom works. How do you zoom?

The current zoom tool is a scroll wheel zoom, not a box selection zoom. Guessing that might be the issue since others have run into the ambiguous description as well. It will be labeled more precisely in master in a few days and in the next release as well.

If that is not the issue, please file a ticket on GitHub!

Re: Bokeh – Interactive web visualization library in Python

#56
I wanted to point out one important distinction between Bokeh and anything that's currently out there - we have a full blow python/js object bridge that synchronizes client side models with objects you can interact with in python. The significance of this, is that someone can select points on a scatter plot, and then you can retrieve the indexes of those points on the python side, and use that to further dive into your data.

It's worth mentioning that the IPython guys are implementing a similar json/python bridge to support the new interactive tools in the IPython notebook. Once that is up and running, we'll probably just piggy back off of that bridge, when you're running in the notebook.

Re: Bokeh – Interactive web visualization library in Python

#57
post #9

As a "database guy" who uses Python for most things not bash, is this an approach for viz apps that would eliminate (most) of the need to muck about in JavaScript? D3 and its children produce some awesome visualizations, but the bandwidth does not exist for me to begin developing apps in a language I don't have much experience in. If something like Bokeh allows me to live mostly in Python, it becomes even more intere…

Take a look at Vincent, which may give you what you're looking for (Python -> Vega, a d3 wrapper): https://vincent.readthedocs.org/en/latest/

Re: Bokeh – Interactive web visualization library in Python

#58

Earlier quoted context omitted.

This is really cool, but what about adding interactivity with the charts? My first thought when I saw the headline was that this python library just generates D3 code, but it seems to be generating some sort of a static SVG object.

There are already some tools available, pan and wheel zoom, plot resizing, selection (on some plot types). Many more tool types are planned. As for the architecture, BokehJS is built entirely on top of HTML canvas. The python bokeh library sends data and plot specifications to the browser, which uses BokehJS to render the plot and handle interactive tools, etc.

Gotcha, thanks.

Re: Bokeh – Interactive web visualization library in Python

#59

Earlier quoted context omitted.

For some reason I can't get any of the interactivity buttons to work. EDIT: Ok, everything but the zoom works. How do you zoom?

The current zoom tool is a scroll wheel zoom, not a box selection zoom. Guessing that might be the issue since others have run into the ambiguous description as well. It will be labeled more precisely in master in a few days and in the next release as well. If that is not the issue, please file a ticket on GitHub!

On a Macbook, the scroll wheel equivalent is the two fingered scroll and that doesn't seem to work for me (scroll the page).

Re: Bokeh – Interactive web visualization library in Python

#60
I realize this is nitpicky, but it seems obnoxious to call these[1] "candlesticks" when it would make much more sense to call the page box plots[2]. Wouldn't it?

[1] http://bokeh.pydata.org/plot_gallery/candlestick.html

[2] http://en.wikipedia.org/wiki/Box_plot

Post reply on HN