Re:Bokeh – Interactive web visualization library in Python
by Dartanion7 on Wednesday November 20, 2013 @11:50AM
(#6769136)
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.
[ Parent
| on HN ]
Re:Bokeh – Interactive web visualization library in Python
by hhuuggoo on Wednesday November 20, 2013 @12:03PM
(#6769224)
We're actually using canvas.
http://bokeh.pydata.org/plot_gallery/iris.html
That has a selection tool you can play around with.
Re:Bokeh – Interactive web visualization library in Python
by bigreddot on Wednesday November 20, 2013 @12:03PM
(#6769226)
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.
Re:Bokeh – Interactive web visualization library in Python
by Dartanion7 on Thursday November 21, 2013 @04:04AM
(#6773749)
Gotcha, thanks.
Re:Bokeh – Interactive web visualization library in Python
by paddy_m on Wednesday November 20, 2013 @12:21PM
(#6769377)
Here is a linked brushing example in the IPython notebook.
http://nbviewer.ipython.org/urls/raw.github.com/ContinuumIO/...
Re:Bokeh – Interactive web visualization library in Python
by primelens on Wednesday November 20, 2013 @08:53PM
(#6772608)
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?
Re:Bokeh – Interactive web visualization library in Python
by bigreddot on Thursday November 21, 2013 @12:28AM
(#6773207)
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
by primelens on Thursday November 21, 2013 @05:21AM
(#6773960)
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
by bigreddot on Thursday November 21, 2013 @10:54AM
(#6775264)
Do you have the tool selected in the toolbar above? If so, please file a ticket on GH about this. Most of the Bokeh devs are on OSX so it would surprise me if it does not work on OSX, but if there is a bug we want to fix it!