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
9
votes
2 answers

Python - sns.color_palette output to Hex number for Bokeh

What is the output format of sns.color_palette('Reds', 5)? How can I convert it to Hex numbers? Running the above command gives you the Output of: [(0.99358708227381987, 0.83234141714432663, 0.76249136363758763), (0.98823529481887817,…
Hamid K
  • 983
  • 1
  • 18
  • 40
9
votes
2 answers

Get URL parameters for bokeh application

Hi I am developing a bokeh application to perform some analysis. I want to get the URL parameters from the server so I can decide which data to render in the application. Currently I can route URLs like http://127.0.0.1:5006/bokeh/videos/?hello=1…
chtlp
  • 645
  • 1
  • 6
  • 16
9
votes
2 answers

Using Bokeh chart interactions in Jupyter / IPython notebook

I have a Bokeh chart in a Jupyter notebook, and I want to run custom Python whenever the Bokeh selection changes. It is very easy to run custom Javascript whenever the Bokeh selection changes using a source change callback, but I have no way to…
John Jumper
  • 461
  • 3
  • 10
9
votes
1 answer

Bokeh - How to Click and Drag?

I would like to click-and-drag the scatter points the points of a bokeh scatter plot. Any ideas how to do this? (edit: this is an example of what I'd like to do) For an example of a scatter, the code below generates the scatter plot chart found…
Pythonic
  • 2,091
  • 3
  • 21
  • 34
9
votes
3 answers

How do I create a pie chart using Bokeh?

All I'd like to do is create a pie chart. The Bokeh documentation covers a number of sophisticated charts, including a donut chart, but it doesn't seem to cover pie chart. Is there any example of this? Ultimately, the chart will need to be to be…
Mr_Spock
  • 3,815
  • 6
  • 25
  • 33
9
votes
1 answer

Bokeh - Plotting Data with Gaps

Is there a way to have Bokeh plot data that has gaps in it? See the below screenshot from a Excel plot for an example. I tried using None values, but it just plotted zero values. x_data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] y_data = [4, 1, 2, 3, , , …
feik
  • 367
  • 2
  • 17
9
votes
1 answer

How to build tree diagrams in bokeh

What would it take to implement a tree diagram in bokeh? Something similar to this DS example would be nice -- http://bl.ocks.org/robschmuecker/7880033 I'm just looking to visualize a data structure, so only need the pan, zoom, and collapse…
9
votes
3 answers

Using bokeh to plot on top of a map

So i'm trying to use bokeh to plot a set of geographical points (school locations to be exact). I can plot them using the lats and longs, but how can I overlay these points over an actual map? Is there a way to integrate bokeh with google maps or…
Joshin
  • 299
  • 1
  • 3
  • 14
9
votes
2 answers

Applets, embedding and the bokeh-server

There seem to be at at least two or three major ways of building apps that communicate with bokeh-server in Bokeh. They correspond to the folders app, embed and plotting/glyphs under the examples directory in Bokeh. On the differences between…
Amelio Vazquez-Reina
  • 91,494
  • 132
  • 359
  • 564
9
votes
2 answers

Updated Bokeh to 0.5.0, now plots all previous versions of graph in one window

Before I updated, I would run my script and output the html file. There would be my one plot in the window. I would make changes to my script, run it, output the html file, look at the new plot. Then I installed the library again to update it using…
oregano
  • 816
  • 9
  • 25
8
votes
1 answer

How to control the legend position of a Holoviews Holomap figure?

I am trying to create a Holomap figure in holoviews that includes a legend at the top of the plot. The configuration option "legend_position" works fine for a non-holomap figure ("example1.html" below), but not for the holomap ("example2.html"…
magum
  • 597
  • 1
  • 5
  • 12
8
votes
2 answers

Update a bokeh plot using ajax

I have a similar question as this one. I have a website containing several elements, such as a table and a bokeh plot which I want to update once the user gives a certain input. While I can accomplish this for the table, I don't know how to update…
Cleb
  • 25,102
  • 20
  • 116
  • 151
8
votes
1 answer

bokeh plotting second axis - how to get limits of primary axis?

I have a bokeh plot with date on the x-axis (data["obs_date"]) and I want another x-axis at the top covering the same range but shown in a different format (mjd below). I have tried to add the second axis with: plot.extra_x_ranges = {"MJD": …
Jdog
  • 10,071
  • 4
  • 25
  • 42
8
votes
2 answers

No module named 'bokeh.plotting'; bokeh is not a package

I am trying to import curdoc. I have tried from bokeh.io import curdoc and from bokeh.plotting import curdocbut neither works. I've tried pip install -U bokeh and pip install bokeh but it still returns no module named 'bokeh.plotting; 'bokeh' is not…
machump
  • 1,207
  • 2
  • 20
  • 41
8
votes
2 answers

Get the attributes of the selected item in a GeoJSONDataSource

I want to link a plot containing patches (from a GeoJSONDataSource) with a line chart but i'm having trouble getting the attributes of the selected patch. Its basically a plot showing polygons, and when a polygon is selected, i want to update the…
Rutger Kassies
  • 61,630
  • 17
  • 112
  • 97