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
1
vote
1 answer

How to display a nested dictionary with bokeh datatable

I'm trying to display a dictionary with nested dictionaries inside. And on cells with the nested dictionary, the bokeh datatable display that as [object Object]. So far, I've been unpacking the dictionaries manually to display the actual data,…
Kupperu
  • 111
  • 2
  • 11
1
vote
1 answer

Flask with `import bokeh` with 2 bokeh graphs without external bokeh server and not "Models must be owned by only a single document"

TL;DR I am beginner in bokeh. I've read https://docs.bokeh.org or others examples in stackoverflow and github but I don't find examples in Flask with import bokeh with 2 bokeh graphs without external bokeh server and not "Models must be owned by…
phili_b
  • 885
  • 9
  • 27
1
vote
0 answers

Bokeh - add edge labels/edge attributes for Networkx Graph

I'm trying to visualize the network graphs using bokeh. I'm able to add more information and functionality, such as: sizing and coloring nodes by degree sizing and coloring nodes by modularity class adding responsive highlighting when hovering over…
Ailurophile
  • 2,552
  • 7
  • 21
  • 46
1
vote
0 answers

Bokeh: slow interactive data filtering with slider

This question has been posted and answered on Bokeh Discourse. I wrote an interactive data visualization script with bokeh taking use of JavaScript callbacks (MWE below). The data filtering is noticeably slow starting at around 10k data points, and…
unvarnished
  • 95
  • 1
  • 8
1
vote
1 answer

Bokeh NumerFormatter Swiss Francs

I am currently working on a Webapp with Bokeh which contains a table of Swiss Franc values. I cannot figure out how to format the numbers in the following style 1'000'000 so with dahes instead of commas as the 1000 separator. Going down the…
Tom
  • 11
  • 2
1
vote
0 answers

How to plot visualization with Interactive Feature Selection in Bokeh, Python

The task is to automate the Visualization. The CSV file contains large nos of features (column names e:g. 32 nos it may increase in future). The task is to plot Interactive Visualization. All the examples I found are hardcoded for the dynamic…
1
vote
0 answers

How to display different data points on GMAP given a criteria on Bokeh python

I am trying to utilize gmaps with bokeh to display a visualization of all houses in my dataframe in the NYC area. I have it to display all the houses but the issue I am having is how do I setup a slider to control which datapoints are being display…
Pizon
  • 11
  • 2
1
vote
1 answer

How to show values on hover for multiple line graphs - Bokeh

I am trying to plot stock data. X - axis has date values and Y - axis has a numeric value. A & B are two data frames. I am plotting multiple lines on the same plot using the below: from bokeh.plotting import figure, show p = figure(title="X",…
EXODIA
  • 908
  • 3
  • 10
  • 28
1
vote
1 answer

Python Bokeh add an alert based on a python object

I'm doing a Bokeh page were I do some calculations in Python, sometimes the calculations crashes and I want to use the "Alert" browser popup to let the user know that they added some bad data. I used this example and added a Radiobuttongroup where I…
axel_ande
  • 359
  • 1
  • 4
  • 20
1
vote
1 answer

How to sync a bokeh/panel animation with a video player like dash.js?

I am using bokeh and panel to create an animated plot together with some navigation controls like a slider, play/pause, skip 5s, etc. At the same time, there is video footage which I would like to display in sync with that animation. I started…
Ansgar T.
  • 111
  • 6
1
vote
1 answer

Removing background color in holoviews image

What is the correct way to specify the background colour for a Holoviews image? Here's the example I am using: import holoviews as hv import numpy as np hv.extension('bokeh') eye = np.eye(10) hv.Image(eye).opts(clipping_colors={0: 'red'}) I also…
SultanOrazbayev
  • 14,900
  • 3
  • 16
  • 46
1
vote
1 answer

Export notebook as HTML with nbconvert and embed data for panels (bokeh, holoviews, hvplot)

I'm trying to export a notebook to HTML, inside the notebook there are multiple interactive panels. import panel as pn import hvplot as hv import holoviews as hv2 from bokeh.io import output_notebook, push_notebook, show, save, output_file from…
1
vote
1 answer

Is it possible to use commas instead of dots as decimal separators in bokeh

I currently have this code but I was wondering if it's possible to use commas instead of dots to show the decimals. # Plot p = figure(title="Weerstand-temperatuurcoefficient", x_axis_label="Temperatuur (C)", …
1
vote
1 answer

Load datasource in Bokeh chart after a button click

I am building a chart using Bokeh. I need to create an empty Figure and when the page is loaded, if I click on a button, data is loaded and displayed on the chart. I wrote this code but it doesn't work. def _op_produttivitaRidge1day(db,…
bircastri
  • 2,169
  • 13
  • 50
  • 119
1
vote
1 answer

Bokeh highlight values in second plot and show data table

I have two plots and a data table. I want to select a value in plot 1 and then the corresponding value of plot two should be highlighted in plot 2. In addition I would like to show a data table under both plots with the selected values. Here is what…
honeymoon
  • 2,400
  • 5
  • 34
  • 43
1 2 3
99
100