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

VS Code opens new browser everytime a change is made in Python script

I am building a Bokeh app in VS code and whenever I hit Run (green arrow on top right), the changes open up to a new browser. I thought this would be easy to achieve but I am struggling to find a way where the same browser can just be refreshed…
Minh Chau
  • 83
  • 4
1
vote
0 answers

Why removes Bokeh hours from DateTimeTIckFormatter after some seconds

I'm building a line chart using bokeh. In X axis I m plotting datetime values. I have also create a DateTimeTickFormatter to display label of this axis: DateTimeTickFormatter is this: dateTimeTickFormatter = DatetimeTickFormatter( …
bircastri
  • 2,169
  • 13
  • 50
  • 119
1
vote
1 answer

how to use images as glyphs in holoviews

I am using holoviews with the bokeh backend, but for one of the layers, I need to display images at a number of pionts. I've found this bokeh demo (https://docs.bokeh.org/en/latest/docs/reference/models/glyphs/image_url.html), which does what I…
1
vote
0 answers

Bokeh Div text alignment with variables in header

I have a question based on this answer: Bokeh Div Text Alignment text = """

This is a heading

This is a…

bogate
  • 13
  • 2
1
vote
1 answer

Tooltips/Hover over shows ??? - python/bokeh

I'm using python/bokeh to plot some point with some attributes, and now I have a problem that I couldn't figure out: the hover tooltips does not for some columns. Considering this line of my code: HOVER_TOOLTIPS = [("index",…
1
vote
0 answers

How to plot LabelSet outside the plot box?

I'm trying to highlight last value of a time series plot by plot its value on yaxis, as shown in this question. I prefer using LabelSet over Legend because you can precisely control the text positions and also using a data source to update it. But…
TMS
  • 363
  • 5
  • 17
1
vote
0 answers

Network graph not updating with js_on_change for a Select widget on Bokeh

Following this example, I am trying to build a network graph using Bokeh where I can use a select widget to filter my data. My data will look something like this: source target var1 var2 a c 1.0 0.0 b g 2.0 0.0 …
1
vote
0 answers

Save Bokeh Surface3d plot to png creates empty image

I'm making a 3d surface plot using the code from http://docs.bokeh.org/en/latest/docs/user_guide/extensions_gallery/wrapping.html#userguide-extensions-examples-wrapping but when I try to save it using export_png, I get an empty image. I see the plot…
lumalot
  • 141
  • 10
1
vote
2 answers

Open new plot with `bokeh` TapTool

I have a class Collection that holds a bunch of other class objects Thing that all have the same attributes with different values. The Collection.plot(x, y) method makes a scatter plot of the x values vs. the y values of all the collected Thing…
Joe Flip
  • 1,076
  • 4
  • 21
  • 37
1
vote
0 answers

js_on_change not working for network graph on Bokeh

Following this example, I am trying to build a network graph using Bokeh where I can use a select widget to filter my data. My data will look something like this: source target var1 var2 a c 1.0 0.0 b g 2.0 0.0 …
1
vote
1 answer

Example of Mandelbrot Set with Holoviews Library is not Showing the Image

I ran this example code from Holoviews, but it does not generate the image and it doesn't give any errors. Anyone knows why the image is not showing? Here is the link of the code: http://holoviews.org/gallery/apps/bokeh/mandelbrot.html
Elmer Rock
  • 13
  • 2
1
vote
0 answers

Is there a way to incorporate images in a standalone HTML from a bokeh python code?

recently I read the following code from https://docs.bokeh.org/en/latest/docs/user_guide/tools.html#custom-tooltip. from bokeh.plotting import ColumnDataSource, figure, output_file, show output_file("toolbar.html") source =…
dj8030
  • 21
  • 2
1
vote
0 answers

How to translate checked boxes into plots

I hope the title is not too confusing. I have a large Data file with many columns, they all have titles and the data is loaded into pandas, the x-axis should be the date. Now I want to create an interactive plot with the data, so you can see all the…
Schlumpi
  • 21
  • 2
1
vote
0 answers

Is it possible to show the scale in an OSM tile plot using bokeh?

I am using the OSM tile provider in bokeh to plot a basemap, here is a reference. I am wondering if there is a way to show the scale of the map in meters or kilometers depending on the zoom level. Just to clarify, the axis labels can remain in…
sehan2
  • 1,700
  • 1
  • 10
  • 23
1
vote
1 answer

Hide several lines using Checkboxes and CustomJS in Python Bokeh

Let say I have 2 different lines: df[0]=fig.line(x = 'x', y = 'y',..., name = 'toto0',source=s0) df[1]=fig.line(x = 'x', y = 'y',..., name = 'toto1',source=s1) If I want to have to possibility to hide them, I use this piece of code: checkbox =…
olivier dadoun
  • 622
  • 6
  • 22