Live data from Hacker News

Bokeh – a Python interactive visualization library

bokeh.pydata.org

21–30 of 67 posts

Re: Bokeh – a Python interactive visualization library

#21

"Bokeh is a Python interactive visualization library that targets modern web browsers for presentation." A description of how one gets from Python to a web browser display would be nice. Is there a translation from Python to Javascript somewhere? Is there a Python web server backend? Are there dynamic visual updates or does this thing just generate a static output like a .png file?

> A description of how one gets from Python to a web browser display would be nice.

Check out Jupyter notebooks.

> Is there a Python web server backend?

That's possible for dynamic charts, but for most usage, Bokeh saves all the chart's data inside the .html file (yielding sometimes huge files). See http://bokeh.pydata.org/en/latest/docs/gallery.html for examples.

Re: Bokeh – a Python interactive visualization library

#22
post #8

Strange name, it refers to the way a camera lens blurs out-of-focus objects (especially highlights) into a disc shape [1]. I was expecting an image processing library. Bokeh is widely discussed by photography equipment aficionados as one of the main distinguishing traits of different lens designs besides sharpness, distortion, etc. edit: maybe it is an allusion to bubble plots? [1] https://www.google.com/search?q=bok…

i believe the idea behind the name is that bokeh (python) is to data viz what bokeh is to photography - its a tool that brings the important data into focus.....

Re: Bokeh – a Python interactive visualization library

#23
post #9

Since I have never really liked Matplotlib I would really like to learn Bokeh, but unfortunately its inability to export its visualizations in SVG or similar formats makes it kind of useless for me as a scientist wanting to publish my results.

They're working on it, probably in a month or two you'll be able to do it: https://groups.google.com/a/continuum.io/forum/#!searchin/bo... At the current time you can export to png, or maybe export to svg in a roundabout manner, by turning html page into pdf, turning pdf into svg, etc.

Working on SVG? What about EPS instead? For scientific publishing EPS is much better unless your visualisation is pretty much an high entropy one.

Re: Bokeh – a Python interactive visualization library

#24

"Bokeh is a Python interactive visualization library that targets modern web browsers for presentation." A description of how one gets from Python to a web browser display would be nice. Is there a translation from Python to Javascript somewhere? Is there a Python web server backend? Are there dynamic visual updates or does this thing just generate a static output like a .png file?

> A description of how one gets from Python to a web browser display would be nice

http://birdsarah.github.io/europython-2015-bokeh/static/slid...

python (or r or scala) spits out json that is consumed by bokehjs

Re: Bokeh – a Python interactive visualization library

#25

"Bokeh is a Python interactive visualization library that targets modern web browsers for presentation." A description of how one gets from Python to a web browser display would be nice. Is there a translation from Python to Javascript somewhere? Is there a Python web server backend? Are there dynamic visual updates or does this thing just generate a static output like a .png file?

From the docs, under "Getting started": > When you execute this script, you will see that a new output file "lines.html" is created, and that a browser automatically opens a new tab to display it. (For presentation purposes we have included the plot output directly inline in this document.) This is based on an example calling an output_file() function, but the docs also mention output_notebook(), and I'm sure you can…

Yes - there's the ability to generate the raw html of a plot or a JS script and div that can be embedded in an HTML doc.

Source: http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html

Re: Bokeh – a Python interactive visualization library

#27

"To use the Bokeh server with python 2.7, you also need to install Futures package." Does this statement mean it supports Py3 and if you want to use it with 2.7 you need Futures? Or is it only Py2.X? [0] [0] http://bokeh.pydata.org/en/latest/docs/installation.html

Bokeh can be used with both Python 2.7 and Python 3. Additional dependencies are needed to work with Python 2.7. In fact, the "write call-back functions in Python" capability uses a Python to JS compiler called Flexx -- http://flexx.readthedocs.org/en/latest/flexjs . Flexx is currently Python 3 only (though 2.7 support is coming for it).

thx @travisoliphant the requirements are not clear in the docs. This explanation makes more sense.

Re: Bokeh – a Python interactive visualization library

#28

"Bokeh is a Python interactive visualization library that targets modern web browsers for presentation." A description of how one gets from Python to a web browser display would be nice. Is there a translation from Python to Javascript somewhere? Is there a Python web server backend? Are there dynamic visual updates or does this thing just generate a static output like a .png file?

my question exactly. What does this do that I can't do with highcharts?

i would say bokeh is more similar to d3 than highcharts (although my under-standing of highcharts may be off)

1) you can create any viz you want to - you have access to very low-level elements and can build up anything from them 2) it's liberally open source licensed

why i initially got sucked into bokeh over d3 is that: a) I prefer python b) I find it more intuitive (d3 always messes with my head)

Re: Bokeh – a Python interactive visualization library

#29

"Bokeh is a Python interactive visualization library that targets modern web browsers for presentation." A description of how one gets from Python to a web browser display would be nice. Is there a translation from Python to Javascript somewhere? Is there a Python web server backend? Are there dynamic visual updates or does this thing just generate a static output like a .png file?

my question exactly. What does this do that I can't do with highcharts?

I forgot the really important difference between bokeh and highcharts - you can throw 100k points at it and have it be fully interactive without your browser blowing up!

Re: Bokeh – a Python interactive visualization library

#30
post #8

Strange name, it refers to the way a camera lens blurs out-of-focus objects (especially highlights) into a disc shape [1]. I was expecting an image processing library. Bokeh is widely discussed by photography equipment aficionados as one of the main distinguishing traits of different lens designs besides sharpness, distortion, etc. edit: maybe it is an allusion to bubble plots? [1] https://www.google.com/search?q=bok…

i believe the idea behind the name is that bokeh (python) is to data viz what bokeh is to photography - its a tool that brings the important data into focus.....

bokeh by definition is talking about the out of focus stuff, which is arguably the less important part of a shot.
Post reply on HN