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
0 answers

Using local files in bokeh.plotting

I am using bokeh to display pins on a map and want when hoovering to display a JPG. The code below works well when the image is from the internet (i.e. with a URL) but how can I make it work if the image is on the local drive, i.e.…
gtomer
  • 5,643
  • 1
  • 10
  • 21
1
vote
1 answer

How do I format numeric values in a Panel widget?

Using the Python library Panel, I'm trying to format an IntSliderRange to f"{the_slider_number} kr" but the formatting argument in that class is not doing anything with the python text formatting tricks I am familiar with: 'kr', '{} kr', '{0} kr',…
Henrik
  • 673
  • 8
  • 18
1
vote
1 answer

Vertical alignment of text within Bokeh DataTable

I have the following code that produces a datatable in Bokeh: from bokeh.models import DataTable, TableColumn, HTMLTemplateFormatter data = {'A': ['A1', 'A2', 'A3', 'A4'], 'B': ['B1', 'B2', 'B3', 'B4'], 'C': ['C1', 'C2', 'C3',…
JM Nel
  • 53
  • 1
  • 5
1
vote
0 answers

HoloViews Plot will not interact with Bokeh sliders

I am working on a project to visualize a set of data using different diagrams. Using Bokeh's ColumnDataSource along with sliders for callbacks, I have set up a program that illustrates the data using bar charts and pie charts. I also want to add a…
1
vote
1 answer

How to set show_grid = True as a global option in holoviews?

I can always set the show_grid = True in the holoviews with bokeh as a backend plt = hv.Curve((x,y)) plt.options(width=600,height=400,xlabel='time in sec', ylabel='volts',show_grid=True,title='Myplot') I was wondering if this can be set as true…
1
vote
1 answer

Bokeh how to show negative log scale in x and y axis?

I want to plot some financials data which have very wide ranges. At first I used linear axis, however due to the extreme ranges in both x and y axis...the plot end up unusable. I know there are outliers but I don't want to exclude them from the…
1
vote
1 answer

Euro sign in Bokeh HoverTool

Python 3.10. Bokeh 2.4.3 I have searched and searched but I can't find a solution. I'm trying to get a euro sign (€) to appear in a Bokeh HoverTool tooltip. The dollar sign is pretty easy to do: hover.tooltips = [ ('Post', '@Post'), …
Arno
  • 13
  • 3
1
vote
1 answer

bokeh interactor and push_notebook doesn't refresh in VScode

I found a way to implement interactive slider using Bokeh without relying on Bokeh server, since Bokeh server doesn't work in VS code. But this new way doesn't work in vs code either, though it still works in web browser. Is it possible to run it in…
David H. J.
  • 340
  • 2
  • 12
1
vote
0 answers

embed bokeh server in jupyter notebook running in vscode

I want to embed a bokeh server inside Jupyter Notebook. This has been done in this example file. But I usually run Jupyter Notebook on Visual Studio Code rather than directly on a web browser. This causes the problem - the bokeh plot doesn't show up…
1
vote
1 answer

How to plot multiple ColumnDataSource data with hovertools in Bokeh?

The Goal: To generate a scatter plot from a pandas DataFrame with 3 columns: x, y, type (either a, b or c). The data points should have different colors based on the type. Every data point should have a hover effect. However, data points with type c…
1
vote
1 answer

How to customise tooltips with bokeh/holoviews/datashader

I am visualising a large dataframe with holoviews/bokeh and want to customise the tooltips. I'll exemplify: import bokeh import datashader as ds import holoviews as hv from holoviews import opts from holoviews.operation.datashader import datashade,…
mths
  • 807
  • 8
  • 11
1
vote
1 answer

Can I test if my script is run with bokeh serve?

I have a script that I want to run with bokeh serve to display and evaluate results, but I also want to be able to run the same script without bokeh. There's some internal logic that depends on which mode it's running, so I need to be able tot test…
vicmortelmans
  • 616
  • 6
  • 16
1
vote
0 answers

hvplot variable coordinate quadmesh

I have an Xarray Dataset which looks like I would like to be able to select data variables (which i already know how to do) and plot a quadmesh of the data variable selected. The problem is that different data variables have different numbers and…
Curious
  • 383
  • 3
  • 13
1
vote
1 answer

hvplot / holoviews (bokeh) timedelta axis with negative values formatter

Issue: I am trying to plot data with a pandas time delta index with negative time delta values on the x-axis using hvplot or holoviews (bokeh backend). The labels are just integers, and seem to be in milliseconds. I want them to be formatted in a…
n4321d
  • 1,059
  • 2
  • 12
  • 31
1
vote
1 answer

How to put interactive bokeh HTML image in Jupyterlab page

I'm using Jupyterlab (v 3.2.1) and bokeh to create a webpage that allows a user to load a .csv file containing a matrix, and a slider to optionally set a threshold on displayed results. The matrix contains simply some numerical values. The result…
Andrea
  • 91
  • 10