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

Deploying bokeh dashboard via Jupyter notebook; plots not updating

I have been mainly working in VS code to create a bokeh dashboard and I now need to get it to run within a Jupyter notebook. I know that some transformations in the code are required to push the code to a Jupyter notebook and for it to update…
metaltoaster
  • 380
  • 2
  • 15
1
vote
2 answers

How to change Bokeh figure segment line width dynamically

I have a figure containing a segment : p = figure(height=500, tools="pan,wheel_zoom,box_zoom,reset", x_axis_type='datetime', y_axis_location="right") high_low_segment = p.segment(x0='time', y0='low', x1='time', y1='high', line_width=1,…
Pierre Mardon
  • 727
  • 8
  • 25
1
vote
0 answers

What is the "base" file that the Bokeh index.html extends?

I am a little confused about what {% extends base %} is extending at the start of index.html in Bokeh server application packages. Examples of this can be seen in: Bokeh Docs: Embedding in Templates {% extends base %} {% block contents…
hbade
  • 13
  • 3
1
vote
0 answers

Bokeh CustomJS Piechart

I am trying to implement js_on_change on Pie graph but am unable to do so. I am new to bokeh and JavaScript. Below is my code. So basically I want to implement a functionality that whenever I deselect any fruit, then my Pie chart should redraw…
1
vote
1 answer

Slope on bokeh time series plot

What's the internal representation of the datetime in bokeh time series plot, for example, in https://docs.bokeh.org/en/latest/docs/gallery/candlestick.html this candlestick charts, how to plot a slope with 45 degree angle ? (when calculating the…
TMS
  • 363
  • 5
  • 17
1
vote
0 answers

Deploying a Bokeh server with Flask

Trying to get a simple working panel/bokeh server on my web server. I have embed.html {{ resources|safe }} {% block content %}

Plot should be here.

{{ div|safe }} {{ script|safe }}
{% endblock…
A Barra
  • 11
  • 1
  • 2
1
vote
2 answers

Is it possible to scale yrange automatically in holoviews?

I used holoviews to display the line chart, but when I move it horizontally with the pan tool, the line goes off the screen in the vertical direction. Therefore, I wanted a function that autoscales yrange so that the line does not jump out of the…
karutt
  • 359
  • 1
  • 11
1
vote
1 answer

How do you replace the index column in Bokeh DataTable?

I created a DataTable in Bokeh, but it doesn't show the index column: I expected to have the "Index" column in left: This is my code: evolution_data = treatcriteria_daily_data_table.groupby(['startdate_dayweek','startdate_weekyear'],as_index =…
Rinnosuke
  • 123
  • 8
1
vote
1 answer

Changes to Bokeh plot (e.g. zooming) not reflected when calling export_png

I have a Bokeh plot in a Jupyter notebook that can be zoomed and panned. In a later notebook cell I would like to call Bokeh's export_png function to export the plot exactly as it is displayed, however, the exported plot doesn't reflect the current…
Karri
  • 33
  • 3
1
vote
1 answer

Coordinate system not updating in holoviews' DynamicMap

I try to implement an interactive histogram in holoview where you can change the upper limit (so I can decide whether I want to see outliers or not). I am using bokeh as backend. But unfortunately adjusting the slidebar only recomputes the histogram…
Noskario
  • 378
  • 1
  • 9
1
vote
1 answer

Can I attach a plain DataSource to a document on Bokeh?

I have a Bokeh server running and I am embeding it as a Bokeh document in my application, this allows me to change a glyph data source from a component in my front end (while having the sockets connection) by accessing it like: let mySource =…
1
vote
1 answer

Bokeh: legend with MultiIndex table

I just discovered Bokeh recently, and I try to display a legend for each day of week (represented by 'startdate_dayweek'). The legend should contain the color for each row corresponding to each day. import pandas as pd from bokeh.plotting import…
Rinnosuke
  • 123
  • 8
1
vote
0 answers

Is it possible to use normal html (Further Vue/React components) to send data to a Bokeh plot?

I've been trying almost everything from Bokeh documentation and I don't know if this is possible. What I want is to use regular html (input/textbox/table and later a Vue/React component) to get the data to be used by the bokeh server application,…
1
vote
0 answers

How to make a custom colorbar and fill_color with geopandas and bokeh

I'm creating a map of zipcodes in the US with a colorbar based on numerical values. My data looks like index target1 color geodata... 0 2000000 'yellow' XXXX My code is: import geopandas as gp import pandas_bokeh import bokeh import…
Joe B
  • 912
  • 2
  • 15
  • 36
1
vote
1 answer

Reordering Bokeh Legend

I have an evident problem with the legend of the following plot: I understand the issue, python is evaluating '2A' > '10 B' as True, but I dont know how to walkaround it (maybe using natsort package?). I would like to emphasize that the reordering…
Federico Vega
  • 355
  • 2
  • 8