4,740 questions
0
votes
0
answers
24
views
Python, bokeh, hover, touch screen/mobile
I was wandering if anyone has the same problem.
I have several apps running through bokeh server. It was always tricky to use the hovertool when accessing via mobile but to some extent worked. However,...
0
votes
1
answer
58
views
I don't understand why the monthly sst is not changing in browser
Hi all,
I don't understand why the monthly sintetic sea surface temperature is not changing in the browser after running this script (I checked that monthly data is different):
import numpy as np
from ...
0
votes
1
answer
63
views
Bokeh server: plot shared data in several sessions
I am relatively new to bokeh, but very familiar with python.
I want to use a Bokeh server to create a graphical live viewer for my data. I want to retrieve the data in a single thread and then pass ...
0
votes
1
answer
52
views
How to add labels to holoviz multi-index bar graphs?
I am working with multi-index bar charts. My implementation uses python/pandas/hvplot. For example, the example on the hvplot documentation works for my case - https://hvplot.holoviz.org/reference/...
0
votes
2
answers
81
views
Twin Axis with linear and logarithmic scale using bokeh plot Python
I have a linear Bokeh plot under Bokeh version 3.3.0.
I would like to add a (scatter) plot on an additional x-axis with logarithmic scale.
This is my code:
import pandas as pd
from bokeh.plotting ...
0
votes
0
answers
26
views
Python bokeh serve does not recognize local package located in the parent directory
I am hosting python script via:
bokeh serve example.py
and example.py loads local package 'local_module' located in the parent directory.
When opening associated local host html (http://localhost:5006/...
0
votes
0
answers
44
views
Dynamically add tabs with figures in bokeh
I have a bokeh server application (3.7.0). When the application is started one tab is shown and when the execute button is pressed another tab is added. It works as long as the second tab does not ...
0
votes
1
answer
44
views
How do I validate Hovertool with the correct renderer in Python >= 3.9.7? I shifted from Python 3.8.5 to 3.9.7; my script no longer runs successfully
I have a script that plots a few series voltage vs. speed on a bokeh plot for comparison. It includes hover functionality for easier review of the data. It ran successfully when i used python 3.8.5 ...
-3
votes
1
answer
85
views
How to download, convert, and process files in three queues at the same time using Python
I am trying to speed up a process I have been doing for a long time. I currently download all the files. Then I convert them all to CSV. Then I use bokeh to create an interactive chart for looking at ...
2
votes
0
answers
41
views
Figures with shared legend - Bokeh
I would like to do two figures, coming from the same dataframe, with a shared legend.
The main goal is to be able to have one single legend for both plots and to hide data with the click_policy='hide' ...
0
votes
1
answer
45
views
Bokeh DataTable not loading
I'm trying to include Bokeh tabular charts on my web app through sending to the templates as script/div using 'components', however the table is not loading (not even showing when I do show()). I ...
0
votes
1
answer
90
views
pandas resample and candlestick chart
I'm trying to figure out how to create a candle stick chart with the data from pandas resample method. But let's start with this simple example:
import pandas as pd
from datetime import datetime
from ...
-1
votes
1
answer
97
views
Django Bokeh Stacked Bar Chart
Adding more details per guidance...
Here's my model:
class Orders(models.Model):
Order_ID = models.CharField(max_length=50, primary_key=True, auto_created=True)
Order_Desc = models.CharField(...
0
votes
1
answer
41
views
How to remove Holoviews BoxWhisker duplicate legend?
I'm using holoviews and panel in python with a bokeh backend to create a boxplot.
Unfortunately, the legend in the boxplot shows all the entries twice. I don't know if I am doing something wrong or if ...
0
votes
0
answers
26
views
Changing line name dynamically in Bokeh
Is it possible to change the names of the series displayed on the plot dynamically (depending on the current selection of the user)? This is my attempt, but the legend doesn't change.
df['y'] = df....
0
votes
0
answers
39
views
Data model duplication issue in bokeh (the library is possibly not prepared for this use case)
I want to implement a stepping logic for a multi-timeframe charting solution with bokeh library. I need to export a static HTML file with all the data, therefore the size of the HTML export matters.
...
0
votes
1
answer
88
views
Initialize global variable in bokeh and use it in handler code
What I want to achieve here:
I want to generate static HTML and do the data initialization exactly once
I want to pass a complex data structure to the document and use it by multiple buttons / UI ...
0
votes
0
answers
21
views
chat application that works in nopebook environment but does not work on XAMPP and serving using bokeh server
my chat application which uses panels on serving using Bokeh server does not show chat interface.
to me it appears to be some bokeh compatibility with python packages.
to solve I made separate app to ...
1
vote
1
answer
100
views
Display holoviews in jupyter in an air-gapped (offline) environment
How should you use Holoviews with a bokeh backend in an air-gapped system (one with no internet access)?
In such cases its possible to get bokeh to still display using inline in a jupyter notebook by ...
0
votes
0
answers
31
views
Using DataSource in bokeh library for color, alpha and other properties
So far in python's bokeh library I've used a patch method to draw some objects, but the current solution runs in a for loop which is not optimal for this library:
for data_point in data_points:
...
0
votes
1
answer
99
views
Better Scientific notation for Bokeh/Holoviews
I am trying to make a dashboard with holoviews/bokeh and some numbers are rather large. This triggers the scientific notation ticks (ex.1.00e+4 ... 2.00e+5). I don't like the looks of that so I would ...
0
votes
0
answers
24
views
Bokeh, Time Series plot with custom Save tool
the following code is an example from bokeh documentation:
import numpy as np
from bokeh.layouts import column
from bokeh.models import ColumnDataSource, RangeTool
from bokeh.plotting import figure, ...
0
votes
0
answers
39
views
How to reduce size of html component rendered from HoloView/GeoView with OSM tile source
I have a requirement to display an interactive image of a geographic region with time slider. Geographic image will be overlayed with climate data like rainfall. User should be able to change the time ...
0
votes
1
answer
70
views
Bokeh: OpenDialog triggered from Dropdown
Bokeh 3.6.0
Working with Bokeh server, I try to open a bokeh.models.Dialog model. Usually, this is done via my_button.js_on_click(OpenDialog(Dialog=dialog))
Now, I'm struggling to open a given dialog ...
0
votes
0
answers
77
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 ...
0
votes
1
answer
43
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 ...
0
votes
0
answers
130
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 ...
-1
votes
1
answer
133
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 ...
1
vote
0
answers
152
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 ...
0
votes
0
answers
229
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
vote
1
answer
59
views
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 ...
0
votes
0
answers
79
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. ...
0
votes
1
answer
88
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 ...
0
votes
1
answer
50
views
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 ...
0
votes
1
answer
191
views
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 ...
1
vote
0
answers
140
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 ...
0
votes
1
answer
63
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))
...
0
votes
1
answer
89
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 ...
0
votes
2
answers
97
views
Hide Bokeh's toolbar (JavaScript)
I'm trying to hide the toolbar from the following Bokeh example without any success:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
...
0
votes
0
answers
33
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 ...
0
votes
1
answer
80
views
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 ...
0
votes
0
answers
56
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 ...
2
votes
0
answers
73
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.
...
0
votes
0
answers
262
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 ...
0
votes
0
answers
105
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 ...
1
vote
1
answer
68
views
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)) +...
0
votes
1
answer
169
views
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, ...
0
votes
1
answer
282
views
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 ...
0
votes
1
answer
94
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 ...
0
votes
1
answer
68
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 ...