Newest 'bokeh' Questions (original) (raw)
0 votes
0 answers
23 views
Bokeh: Feedback from browser once rendering complete?
Currently I use bokeh to display the data generated from another python script main.py. The workflow is as follows: bokeh runs in a script gui.py and has about 9 plots. main.py generates the data, ...
- 13
asked yesterday
-1 votes
0 answers
51 views
Python plotting library with scrollable categorical y axis for Gantt charts [closed]
I'm trying to plot Gannt charts and other similar scheduling charts. In these, the x axis is time (continuous, could be floats or datetimes) and the y axis is categorical e.g. tasks or machines. A ...
- 311
asked Nov 7 at 12:08
0 votes
0 answers
18 views
Bokeh interactive plot: Option to select/deselect all legends?
is there a way to add checkbox to select/deselect all legends in a Bokeh interactive plot? Bokeh v3.6.0, Python 3.12.6 Example code below: import pandas as pd from bokeh.palettes import Spectral4 ...
- 41
asked Nov 6 at 14:14
0 votes
0 answers
14 views
Bokeh gridplot with single colour bar?
Is there a proper way to add a shared colorbar (or general annotation) to a gridplot (or general layout object rather than a single figure)? This is what I've come up with, but it feels kind of hacky ...
- 1,385
asked Oct 30 at 0:32
0 votes
0 answers
43 views
Bokeh s.replaceAll
I am trying to create a PyQt5 app with a Bokeh plot in a QtWebEngineWidget. While doing so I get an Error: js: Uncaught (in promise) TypeError: s.replaceAll is not a function For a proof of concept I ...
- 1
asked Oct 29 at 14:46
0 votes
0 answers
23 views
How to correctly apply HoverTool to multiple hv.Points objects in a HoloViews plot?
I'm trying to plot a series of data points in a HoloViews plot with multiple scatter and line layers. Each set of data points has custom hover tooltips using HoverTool, and I want the hover tool to ...
- 123
asked Oct 21 at 8:46
0 votes
1 answer
37 views
Failed to display Glyphs (points) on Bokeh Google Map graph with valid API key and CSV data
I am attempting to display points (glyphs) on a Bokeh Google Map graph using valid latitude and longitude data from a CSV file. Although the map renders correctly with the specified API key, the ...
- 1
asked Oct 5 at 1:33
0 votes
0 answers
29 views
Bokeh Colour Sliders Example Rework
Overview of Problem I'm trying to adapt the Bokeh Colour Slider example found here: https://docs.bokeh.org/en/latest/docs/examples/interaction/js\_callbacks/color\_sliders.html . The idea is to have two ...
- 1
asked Oct 3 at 22:10
0 votes
0 answers
58 views
QWebEngineView renders bokeh vizualisation with largish data (~18000 points) slowly
I'm trying to include a Bokeh based visualisation canvas in a Qt application written in Python (using PySide6). So I create the visualisation, save it in an HTML file, and read it in a QWebEngineView ...
- 4,606
asked Sep 23 at 23:46
-1 votes
1 answer
106 views
X,Y, Z data. Creating Surface plot and interpolating from surface plot
I am working on data analysis using Pandas. I have X, Y and Z columns of data in data frame. I want to create a surface plot (with specific grid points) out of it (preferably cubic/spline ...
- 51
asked Sep 20 at 19:51
1 vote
0 answers
95 views
CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. How to config the tornado server
I've been around this bug for a while and any help will be appreciated. Im trying to deploy a panel/bokeh application on Openshift/K8s, The application seems to work correctly, however the browser ...
- 11
asked Sep 13 at 14:21
0 votes
0 answers
199 views
How to trigger Hover(and tooltips) in multiple bokeh figures simultaneously?
I have multiple figures, sharing y-axis but not the x-axis. When my cursor hover on one figure, it will tell me the values (x & y-axis values). But Others have no tooltips. I want all figures show ...
- 1
asked Sep 6 at 7:38
How to get the y values from Bokeh RangeTool selection pan?
I'm working in an app which will show the temperatures recorded by meteorological stations. I'm using Bokeh 3.5.1 with two figures: one is the main graph, and the other one holds a RangeTool to get a ...
- 1,039
asked Sep 3 at 6:15
0 votes
0 answers
23 views
Manually set Header height in Frozen Columns Datable(Bokeh python)
Is there a way to independently set manual Header height in Frozen Columns Datable(Bokeh python) and maintain the horizontall scrollbar for frozen columns at the same time? Adding <'br'> to ...
- 1,501
asked Sep 1 at 4:24
0 votes
0 answers
54 views
Bokeh: how to create customJS button to clear DataTable selection?
I have a DataTable that I am using to select points in a plot, and I have created a "clear selection" button that is suppose to "unselect" all points, i.e. reset the selection. ...
- 2,824
asked Aug 26 at 1:28
0 votes
0 answers
49 views
Is there a Bokeh equivalent to Matplotlib's `useOffset` for offset in axis tick labels?
Plotting points whose y-coordinates' average value is very large but whose variance is small, the labels on the y-axis are not useful. Either one can use high precision custom format--whereupon the ...
- 370
asked Aug 22 at 14:04
0 votes
1 answer
56 views
Bokeh simple data selection slider without python or javascript callback?
Is it possible to do simple dynamic selection of data with a slider in Bokeh without a custom Python callback? Here is what I can do using a callback, but it would need a Bokeh server to work in ...
- 2,824
asked Aug 20 at 5:11
Bokeh: AutocompleteInput and slider widgets to both trigger the same callback
I am trying to set up a callback in Bokeh where I have an AutocompleteInput and Slider that both trigger the same callback that updates the CDS data based on whatever the combination of inputs are. So ...
- 1
asked Aug 15 at 21:14
How can I apply inline CSS formatting to a Bokeh Select widget?
I'm trying to make my select dropdowns in Bokeh much larger with larger text and different colours (if possible). Is there a way to do this using an inline stylesheet or similar? I have tried the ...
- 123
asked Aug 14 at 7:15
0 votes
0 answers
53 views
Reload a static html plot on Bokeh 3.4.1
I am creating a plot and then updating a dataframe everytime a new bar is pulled from the broker. I am actually replacing the dataframe with a fresh 400 bars (really only 1 should be added to the end) ...
- 311
asked Jul 31 at 13:43
1 vote
0 answers
111 views
Bokeh image select slider on Streamlit
I have a Bokeh app which I want to run in a Streamlit app. I know Streamlit supports certain Bokeh elements, but I am struggling to get my specific Bokeh app working on Streamlit. The Bokeh app is ...
- 23
asked Jul 23 at 11:19
0 votes
0 answers
83 views
How to integrate Bokeh panel dashboard with Flask
I have created a panel dashboard and I want to integrate it with a Flask app. I have had some success in doing so, but I encountered a problem. When a user logs out and reloads the panel dashboard, it ...
- 1
asked Jul 10 at 20:06
0 votes
1 answer
45 views
Deploy Streamlit app into github server, bokeh function get_svg() has error
from bokeh.plotting import figure from bokeh.io.export import get_svgs fig = figure(title=f'{file.name}', x_axis_label='Time(s)', y_axis_label='Amplitude', width=800, height=400, y_range=(-40, 40)) ...
- 570
asked Jul 9 at 6:43
0 votes
1 answer
58 views
Plotting multiple dataframes in a single output using Python Bokeh - how to create legends for each plot in a loop?
I am trying to input a single file that contains data from different packet streams (hence, different time values). I created a dataframe for each time and the data points/columns from each dataframe ...
- 420
asked Jul 2 at 15:49
0 votes
2 answers
80 views
Hide Bokeh's toolbar (JavaScript)
I'm trying to hide the toolbar from the following Bokeh example without any success: ...
- 567
asked Jul 1 at 20:03
0 votes
0 answers
32 views
Tooltip('$x','$y') only renders $y on Multichart(Bokeh)
On a Multichart Vbar setup,where the same consolidated dataframe is shared by all the charts,adding hovertooltip on the vbar to indicate the x,y values results in showing only the $y value and not the ...
- 1,501
asked Jul 1 at 11:11
0 votes
0 answers
28 views
Trouble separating instances of bokeh server embedded in flask app
I'm relatively new to using both bokeh and flask and am having some issues with data being shared between instances of my app. I have removed a lot of my code so that I can include it below: import ...
- 5
asked Jun 28 at 10:38
How to set the width of a figure in Bokeh?
I can set a figures width by doing: fig.width = 1000 however this gives me a smaller figure if I have more then one yaxis, or if I have text in the yaxis, or if I have a legend on the left or the ...
- 19
asked Jun 27 at 7:59
0 votes
0 answers
52 views
Initializing a Bokeh AjaxDataSource: source callback not receiving parameters on initialization
I have a Bokeh vbar plot in a figure which gets its data from an AjaxDataSource via a JavaScript callback. It works OK after resizing, but initializing the plot fails with a MultiValueDictKeyError, ...
- 25.4k
asked Jun 24 at 14:24
0 votes
0 answers
45 views
Plot events as rectangles with start-end dates along x axis (rectangle width) and magnitude along y axis (rectangle height)
Consider a dummy data set of events df = pd.DataFrame(columns=['category', 'start','end','value','type'], data=[['A','2024-06-01','2024-06-10',0.5,'normal'],['B','2024-05-27','2024-06-16',.8,'normal'],...
- 163
asked Jun 19 at 16:08
0 votes
0 answers
38 views
Bokeh Config File To Set Defaults Tools
In Bokeh, you can use a .yaml file to set default values for bokeh plot attributes. Is there a way to set the default tools for a plot using a .yaml file? Within a script you can change the plot tools ...
- 13
asked Jun 17 at 21:15
2 votes
0 answers
52 views
Control tools in holoviews (bokeh backend) with overlayed plots
This is an extension of How to control active tools in holoviews with bokeh backend, but applied to overlayed plots. It seems like all plots need to specify the same set of tools to get what you want. ...
- 103
asked Jun 17 at 15:56
0 votes
0 answers
34 views
Immediately interrupting Bokeh processes using a button click
I'm working on a Bokeh application where I have a function update_data() that performs some time-consuming tasks. I want to add a way to immediately interrupt all ongoing processes when a button is ...
- 1
asked Jun 6 at 14:16
0 votes
0 answers
128 views
Bokeh newer versions does not work with pytrendline, while older versions are unable to install
Im trying to plot trendlines on a graph using pytrendlines, however when i run the code it gives the error AttributeError: unexpected attribute 'render_mode' to Label, similar attributes are ...
- 1
asked Jun 4 at 20:08
0 votes
0 answers
82 views
Export animation with bokeh
In matplotlib, I can make a gif with “FuncAnimation” and export it with the method “to_jshtml()” that returns an HTML. The output adds a “scrubber” widget to the animation, which is great. Here is a ...
- 56
asked Jun 1 at 1:37
Overlay multiple lines with bokeh
How can overlay multiple lines on the same figure in bokeh? This is what I've tried; consider the fallowing data. import pandas as pd df = pd.DataFrame( { "seq": list(range(5)) +...
- 4,606
asked May 23 at 14:26
Bokeh Bar Chart - how to remove separator lines (x axis with nested categories)
I've successfully created a Bokeh bar chart with nested categories by following the examples at the official bokeh site (https://docs.bokeh.org/en/latest/docs/user\_guide/basic/bars.html) However, ...
- 300
asked May 17 at 23:41
In Bokeh, how can I update the color of lines when updating a multiline data source?
I want to update a multi_line in a bokeh figure. As part of the updates, I need to adjust colors. First, I make a simple figure: from bokeh.plotting import figure, show p = figure() # create a dummy ...
- 3,701
asked May 8 at 15:20
0 votes
0 answers
30 views
Bokeh - Trying to use Taptool and Tooltips to measure horizontal distance
Since the feature request to support measuring the distance between two points on a chart has been killed for insufficient interest, I'm thinking about how to do it with the existing mechanisms. My ...
- 1
asked Apr 29 at 18:19
0 votes
0 answers
39 views
Bokeh server only shows white page
I am trying to run a Bokeh server that shows an interface in browser with two candlestick charts that compare the data of two stocks. The browser opens with command bokeh serve --show main.py but all ...
- 1
asked Apr 27 at 17:28
0 votes
1 answer
60 views
Bokeh HoverTool not showing time stamp in correct format
Whenever I plot any graph having the time in the "hh:mm:ss" format and use hover tool for seeing the timestamp in the same format at any point in the plot, I see a decimal number having an ...
- 1
asked Apr 25 at 5:05
0 votes
1 answer
54 views
Bokeh, how do i remove datetimes without corresponding values?
hope you are doing well, i would like to render a chart without the long lines present, which correspond to the values that do not have the corresponding pair. Here is the function that is generating ...
- 39
asked Apr 23 at 14:25
0 votes
0 answers
61 views
Django Bokeh App does not render the chart, console says: bokeh-3.4.0.min.js:616 [bokeh 3.4.0] could not set initial ranges
I'm trying to render a Bokeh chart on my html template view but unsuccessfully, any help would be appreciated. Thanks in advance. This is the view class: from bokeh.plotting import figure, show from ...
- 39
asked Apr 22 at 15:07
0 votes
0 answers
47 views
Python callback function not working as expected for bokeh server app
I have just started using Bokeh to make a data viewing platform. In order to make it so the y axis adjusts according to the maximum and minimum points on the screen, I have written a Python callback ...
- 5
asked Apr 22 at 14:43
0 votes
1 answer
64 views
Bokeh does not plot when I provide strings for datetimes
I don't understand why my graphs are not showing up. When I introduce 2 values, capacity and efficiency, the graphs are supposed to show up in my Bokeh interface. Can you tell me why this doesn't ...
- 11
asked Apr 19 at 15:19
0 votes
0 answers
26 views
How to get linked nodes in Bokeh GraphRenderer?
I like to change the style (fill_color) of linked nodes (adjacent nodes) after a node selection. After selecting "C" I would like to change the style of "E" and "F". How ...
- 3
asked Apr 14 at 18:55
bokeh vbar_stack: positive values on positive side, negative values on negative side
Example program import bokeh.colors import pandas as pd from bokeh.plotting import figure, show import bokeh.models import bokeh.palettes import bokeh.transform data = { 'date': ['2024-04-15', '...
- 9,405
asked Apr 12 at 10:33
How to arrange Bokeh networkx graph nodes in a grid?
I like to create rectangle elements in a grid, like in the periodic table. periodic table https://docs.bokeh.org/en/2.4.1/docs/gallery/periodic.html However some elements have to be connected to ...
- 3
asked Apr 9 at 21:56
0 votes
0 answers
33 views
Bokeh server - memory leaks when on_event is used
I need to execute a Python callback when the ranges are changed. For that, I have to run a Bokeh application on a Bokeh server. I'm using Bokeh 3.4.0. Everything works fine if I run the following code ...
- 13.1k
asked Apr 8 at 21:24
0 votes
1 answer
17 views
Treasury tax data : stacked bar chart from dataframe
Program Here's a small Python program that gets tax data via the treasury.gov API: import pandas as pd import treasury_gov_pandas # ---------------------------------------------------------------------...
- 9,405
asked Apr 7 at 22:27