Questions tagged [bokeh]

Bokeh is a library for interactive visualization (including streaming or large datasets) that targets modern web browsers for presentation, and high level languages such as Python, Scala, and R for use.

Bokeh is an interactive visualization library for high level languages such Python, R and Scala, that natively targets modern web technologies. It is easily embeddable in common web-frameworks and can be used for standalone interactive documents, or server-backed data applications for large and streaming datasets.

4729 questions
12
votes
2 answers

Flask + Bokeh AjaxDataSource

Struggling with Flask + Bokeh AjaxDataSource: I have a function that returns json data: @app.route("/data", methods=['POST']) def get_x(): global x, y x = x + 0.1 y = math.sin(x) return flask.jsonify(x=[x], y=[y]) I can use use it…
12
votes
1 answer

Bokeh add label to second axis on the right

I am creating a bar chart using Bokeh, and I want to display 2 independent sets of data. I have added another y-axis to the right side of my plot using the following bar2.extra_y_ranges = {"Mtons": Range1d(start=0,…
mirthbottle
  • 722
  • 7
  • 20
12
votes
2 answers

Can one switch between output_notebook and output_file within an IPython notebook session with Bokeh?

I'm wondering if it is possible to generate static HTML output and inline plots using Bokeh in the same IPython notebook. What I am currently seeing is that once I either call output_notebook() or output_file("myfile.html") I am stuck using that…
Chris Fonnesbeck
  • 4,143
  • 4
  • 29
  • 30
12
votes
2 answers

python bokeh plot how to format axis display

the y axis ticks seem to be formatting numbers like 500000000 to 5.000e+8. Is there a way to control the display so that it displays as 500000000? using python 2.7, bokeh 0.5.2 i m trying out the timeseries example at bokeh tutorials page The…
Amit
  • 149
  • 1
  • 1
  • 5
11
votes
1 answer

Lazy loading with python and flask

I’ve build a web based data dashboard that shows 4 graphs - each containing a large amount of data points. When the URL endpoint is visited Flask calls my python script that grabs the data from a sql server and then starts manipulating it and…
Hazzamataza
  • 983
  • 2
  • 12
  • 25
11
votes
2 answers

Implementing a full 3d scatter with bokeh in python

I am currently working on a project where I would like to output a 3D interactive scatter plot using Bokeh. I would like to colour the dots based on 2 or 3 categories, and I would like to show the gene corresponding to the dot after hovering it. I…
11
votes
2 answers

Python Bokeh send additional parameters to widget event handler

I want to send additional data to a bokeh event handler (e.g. an on_change or on_click method). A minimal example that increments or decrements an integer is below (I run this app with 'bokeh serve --show app.py). I had to write separate event…
Russell Burdt
  • 2,391
  • 2
  • 19
  • 30
11
votes
1 answer

Use Latex in Bokeh axis label

Bokeh does not handle Latex. A solution has been proposed: http://docs.bokeh.org/en/latest/docs/user_guide/extensions_gallery/latex.html#userguide-extensions-examples-latex This is great for adding Latex on top of the canvas. Is there an easy way to…
Arthur
  • 261
  • 3
  • 8
11
votes
7 answers

Debugging Bokeh serve application using PyCharm

Bokeh serve allows to write fast web apps with plots and widgets. How can I debug the python code when I use bokeh serve --show code.py?
Hanan Shteingart
  • 8,480
  • 10
  • 53
  • 66
11
votes
1 answer

bokeh layout for plot and widget arrangement

I have a specific design in mind for my bokeh app. I am using bokeh 0.12.3 and a bokeh server to keep everything in sync. Please, have a look at my mockup: On the left-hand side, there is a static navigation bar, the right part of the view will…
jofroe
  • 431
  • 1
  • 5
  • 14
11
votes
2 answers

Hide legend in bokeh plot

LS, Bokeh plot automatically generates a legend for a plot. How can I hide (not show at all) the legend in a Bokeh plot ? I tried: legend = 'none'. But no success. Thanks
ArtDijk
  • 1,957
  • 6
  • 23
  • 31
11
votes
2 answers

Serving interactive bokeh figure on heroku

I'm trying to serve an interactive bokeh figure via heroku. The figure I'm trying to have served is essentially equivalent to this one (example, code). I'm new to both bokeh and heroku so I'm pretty sure I'm missing something pretty basic -- I…
jhamman
  • 5,867
  • 19
  • 39
11
votes
2 answers

Get selected data contained within box select tool in Bokeh

If I have a scatter plot in bokeh and I've enabled the Box Select Tool, suppose I select a few points with the Box Select Tool. How can I access the (x,y) position location information of the points that I've selected? %matplotlib inline import…
Frank Fineis
  • 113
  • 1
  • 6
11
votes
3 answers

basic bokeh Bar chart

In[21]: from bokeh.charts import Bar, output_file, show In[22]: dict = {'sec': {u'A': 10, u'B': 20}} In[23]: df = pd.DataFrame(dict) In[24]: df Out[24]: sec A 10 B 20 In[25]: output_file("bar.html") In[26]: p = Bar(df) In[27]: show(p) I'd…
euri10
  • 2,446
  • 3
  • 24
  • 46
11
votes
3 answers

is there a way to save bokeh data table content

I am experimenting with bokeh data table to display data embedded in web page. It works quite nicely. Is there a way to save the table content from the displayed data table? Other bokeh plots have tool bar for various functions including saving,…
xyliu00
  • 726
  • 1
  • 9
  • 24