Live data from Hacker News

Bokeh – a Python interactive visualization library

bokeh.pydata.org

51–60 of 67 posts

Re: Bokeh – a Python interactive visualization library

#51
post #23

Earlier quoted context omitted.

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

Please explain why EPS is better.

I've never submitted to a journal that took SVG, nearly everyone I submit to takes EPS.

Re: Bokeh – a Python interactive visualization library

#52
post #44
post #34

Earlier quoted context omitted.

There is a full-featured javascript runtime "BokehJS" which is designed from the ground up to be driven by remote (aka server-side) models, which are sent over the wire as JSON. The server-side models are generated programmatically via Python, R, Scala, etc. The cool thing is that a lot of the interactivity is completely native in BokehJS, so you can build interactive Javascript visualizations from Python , and have…

Are the visualizations downloaded at page load only, or can they be readily fashioned with websockets, etc to turn them into an interactive dashboard? I've been considering running out lab experiments off of a webapp, but haven't found an easy enough solution.

Apart from rendering static html plots or plots with client-side JS callbacks, you could look into using the new bokeh server: http://bokeh.pydata.org/en/latest/docs/user_guide/server.htm...

It allows for building streaming visualizations or plots with using websockets (implemented using tornado).

Re: Bokeh – a Python interactive visualization library

#53
post #32
post #15

Earlier quoted context omitted.

A png isn't a vector format, so the important property of the SVG (or EPS, PDF) is lost. A vectorized bitmap is still a bitmap.

What resolution are you looking for in print? If you export your raster at 300 dpi, and enable lossless PNG compression, shouldn't it suffice for most print purposes?

Often, it's not about print. People sometimes take vector images of plots and squeeze a bunch of them on a single page, with the idea that whoever views the paper online can zoom in if they're interested enough.

Re: Bokeh – a Python interactive visualization library

#54
post #44
post #34

Earlier quoted context omitted.

There is a full-featured javascript runtime "BokehJS" which is designed from the ground up to be driven by remote (aka server-side) models, which are sent over the wire as JSON. The server-side models are generated programmatically via Python, R, Scala, etc. The cool thing is that a lot of the interactivity is completely native in BokehJS, so you can build interactive Javascript visualizations from Python , and have…

Are the visualizations downloaded at page load only, or can they be readily fashioned with websockets, etc to turn them into an interactive dashboard? I've been considering running out lab experiments off of a webapp, but haven't found an easy enough solution.

you might be interested in http://demo.bokehplots.com/ which are all examples of bokeh apps that use websockets to allow you to run python functions based on user interactions with plots. the code for all the examples is linked from that page also.

Re: Bokeh – a Python interactive visualization library

#55

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.

Try my Veusz plotting app and library - http://home.gna.org/veusz - it has a nice interactive GUI, is python scriptable and extensible via plugins. It's based around Python, Qt and numpy. It can export to PDF, EPS, SVG and bitmap formats.

Re: Bokeh – a Python interactive visualization library

#56
Bokeh is cool, but I've found that it's method for customizing appearance of graphs is a little unintuitive and clunky.

For example, have a look at this cursory analysis of my Reddit comments that I did late last year. Getting the graphs to look nice felt like pulling teeth at the time.

http://nbviewer.jupyter.org/github/Niksko/redditCommentData/...

That being said, I'm reasonably happy with the results. And that pannable, zoomable line graph is pretty fancy and is easy to set up.

Re: Bokeh – a Python interactive visualization library

#57
Any chance of getting access to the old tutorials that consisted of scripts with the boilerplate written, but missing the key functionality? I was really enjoying working through them and digging into the docs, then all of a sudden they were taken offline and I was directed to the notebooks.

Re: Bokeh – a Python interactive visualization library

#58
post #46

Earlier quoted context omitted.

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

Thanks for the feedback. We keep a continuous and frequent effort to make documentation more efficient and straightforward .. Building clear is a constant/endless effort and feedback is very important. To clarify, Futures is required for bokeh server as an extra dependency on Python 2.7 since it's not a battery included like for Python > 3.2.. if you conda install Bokeh it should be installed already for you. You can…

thx @fpilger, fantastic to see another Py3 ready application. It's clear now. One way to avoid this is either give a install write up an installation guide [0] that explicitly mentions the python version and dependencies.

This is one of the first questions I ask, "is this code Python3 ready?", so I look at the install requirements first. Maybe I'm an edge case. A short cut might be just to say in big words, Python3 ready.

[0] For example this PIL fork, Pillow (python3) https://pillow.readthedocs.org/en/latest/installation.html

Re: Bokeh – a Python interactive visualization library

#59

Earlier quoted context omitted.

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!

HiCharts has dynamically loadable data. I have a database that has 120M points. I just keep some pre aggregated data to populate the wide periods. As you zoom it it selects smaller aggregation sets. (Think; 1 month for 10 years, 2 weeks for 1 year, etc). If you have the data you only need about 20 lines of JS so support this with json. That said, bokeh requires little to no javascript and that's a huge advantage if you need to get multiple visualizations. It does, pretty much stock, what you can do with HiCharts without needing as much full-stack expertise.

Re: Bokeh – a Python interactive visualization library

#60

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.

This is just a throw, I've not tried. But Bokeh creates Canvas. There is a Canvas 2 SVG https://github.com/gliffy/canvas2svg JavaScript library already made.
Post reply on HN