Questions tagged [bokeh]

Bokeh is a cutting-edge tool designed for creating interactive visualizations, specifically suited to handle large datasets and real-time streaming. It is optimized for modern web browsers and supports popular high-level programming languages like Python, Scala, and R.

Obtaining information from connected brushes in mlpd3, Bokeh, and Plotly using Python

In the following code, a 2x2 graph with 4 plots is generated. Data points can be selected using brushes. The main question here is how to retrieve the selected data points as a JSON array or CSV file. While this code uses mpld3 for this purpose, Bokeh offe ...

Bokeh's to_bokeh() function disregards the legend when converting from matplotlib

I recently noticed that when I convert a matplotlib plot to a bokeh html plot, the legend from the original matplotlib plot does not carry over. Can someone provide guidance on how to display the legend in the bokeh html plot? Here's an example for refer ...

Adding a large number of plots to Bokeh in bulk

Is there a way to speed up the process of adding 10,000 lines to a bokeh plot which are based on two points for each line? Doing this one by one is very slow, sometimes taking up to an hour. import pandas as pd import numpy as np from bokeh.plotting impor ...

Having trouble importing a Bokeh plot while attempting to integrate it with a Django upload button due to ImportError

I'm having difficulty integrating a Bokeh plot into a Django website that includes an upload button. I started with the example provided here and then followed additional instructions on embedding from here. I have successfully used need-a-minimal-django-f ...

Running a Bokeh Server with Tornado on Amazon Web Services (AWS)

Is there a way to prevent public IP access to the Bokeh Server when hosting it on AWS with Tornado? ...

Incorporating numerous bokeh html files into a Django template

After creating plots with bokeh and exporting them as HTML files, I encountered an issue when trying to add multiple plots into a Django template. The first plot displays correctly, but the second one is not visible. Shown below is the Python file respons ...

Adding Arrow annotations with an offset to a Bokeh plot that has a datetime x-axis can enhance the visualization

Is there a way to visually represent when the short moving average crosses above the long moving average, like with an arrow or dots? I attempted to use the code below to plot this on a datetime axis, but encountered errors. #plot short ma and long ma p.li ...

Customize Bokeh DataTable cell colors using unique range values for each cell

I am working with a bokeh data table that displays the concentration measurements for three different QC samples: low concentration, medium concentration, and high concentration. Unnamed: 0 run 9Be 45Sc 51V 52Cr 55Mn........ QC Low Mean ...

How can you display Bokeh HTML visualizations on your WordPress site?

I've developed a Python Bokeh dashboard with visualizations and saved the HTML file. Viewing it in my browser displays the graphs as expected. However, I'm facing issues trying to showcase this dashboard on my WordPress site. Simply pasting the HTML code ...

Leveraging the MultiSelect tool in Bokeh to toggle the visibility of specific lines

I've been working on analyzing four different sets of data, each containing multiple time series. To visualize all the data together, I decided to use Bokeh for plotting. Here's how it currently looks: see the multiline graph with Bokeh widget from bokeh ...

Navigate through stunning visuals using Bokeh Slider with Python callback functionality

After being inspired by this particular example from the Bokeh gallery, I decided to try implementing a slider to navigate through a vast amount of collected data, essentially creating a time-lapse of biological data. Instead of opting for a custom JavaS ...

Where does the index originate from in a ColumnDataSource that is generated from a pandas DataFrame?

Every dataframe has an index, which serves as a set of row headers. When I create a ColumnDataSource in bokeh to visualize and annotate the information from my dataframe using a HoverTool, I noticed that there is a pre-defined tooltip named ( "index" , " ...

Utilizing Bokeh for Interactive Time Series Visualization and Highlighting Specific Time Ranges

I am working on a time series plot and I want to add a layer that highlights specific ranges using glyphs. Here is an example: fig.quad(top=[10], bottom=[0], left=[0], right=[100], color="red", fill_alpha = 0.2) The user should be able to dynamically add ...

Guide to creating an HTML table with bokeh

As a newcomer to Bokeh, I've been searching through the documentation for examples but haven't come across an in-built method for creating tables. I have some data that I need to display in tabular format and was wondering what the most straightforward app ...

Basic Bokeh application: Chart fails to update properly

While exploring the Bokeh sample found here: . I noticed that my dataset is quite similar to the example, leading me to believe that the process would be straightforward. However, I've come across an issue that has left me puzzled. import os , pick ...

Tips for enabling the TypeScript compiler to locate bokeh's "*.d.ts" files

I recently made the switch from Bokeh's convenient inline extension framework to their npm based out of line build system. I'm currently working on getting my extension to build, but I've noticed that Bokeh organizes all TypeScript *.ts.d fi ...