bokeh

Is Bokeh compatible with Google App Engine?

江枫思渺然 提交于 2020-01-24 21:50:16
问题 I've been working through this Udacity web dev course and wanted to try embedding a simple bokeh plot into a web page using this example. Running dev_appserver.py gives the error: ERROR 2017-01-22 14:35:30,358 wsgi.py:263] Traceback (most recent call last): File "C:\Users\AppData\Local\Google\Cloud SDK\google-cloud-sdk\platform \google_appengine\google\appengine\runtime\wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "C:\Users\AppData\Local

Python/Bokeh: Disable hover tool for hidden glyphs (via interactive legend)

走远了吗. 提交于 2020-01-24 20:50:09
问题 Problem description Since bokeh 0.12.5 it is possible to use interactive legends to hide or mute glyphs via clicking on them in the legend box. This is a great feature especially for more complex plots. However, when used in conjunction with the hover tool, hidden glyphs should not trigger the hover tool because the user is provided with a tooltip for glyphs which are not visible (due to muting via the interactive legend). Here is minimal code example for clarification: import numpy as np

How do I get a full-height vertical line with a legend label in holoviews + bokeh?

戏子无情 提交于 2020-01-24 14:45:29
问题 I want to plot a vertical line in holoviews with the bokeh backend which has a label that shows up in my legend. I need this line to be the full height of the plot, regardless of whether it is alone or overlaid with other elements. How can I achieve this? Example I'm adding in a curve plot in the example because otherwise even elements that can appear in a legend just use their label as a title. import numpy as np import holoviews as hv hv.extension("bokeh") x = np.linspace(0, 1) curve = hv

put scroll on Bokeh Dropdown choices

限于喜欢 提交于 2020-01-24 09:26:26
问题 Is it possible to put scroll for Bokeh dropdown when there are many options? For example, in the following image, I would like to have 5 options at a time, and be able to scroll down to other options when needed. That would be great if you could provide a working example. Here is a an example for a dropdown. from bokeh.models import Dropdown mymenu = [(str(i), str(i)) for i in range(1, 10)] dd = Dropdown(label="DropDown Label", button_type="warning", menu=mymenu, width=150) show(ddmsn) I

Bokeh datatable filtering inconsistency

纵然是瞬间 提交于 2020-01-24 00:59:30
问题 Apologies but I can't make any reproducible code for this question since it's pretty inconsistent. So I have a bokeh data table, and I'm doing some filtering with it using 4 dropdown boxes. The data table updates based on dropdown box value, and the updates were written in JS. The filtering works as expected, but strangely enough for some very specific combinations of dropdown values it does not display anything in the data table. I was wondering if it was a problem with my data, but I

Python bokeh CustomJS callback update DataTable widget

时光毁灭记忆、已成空白 提交于 2020-01-24 00:45:08
问题 How can I update the values of my DataTable widget using Select widget? Here is my sample code: import pandas as pd from bokeh.io import show from bokeh.layout import column from bokeh.models import ColumnDataSource, CustomJS, Select from bokeh.models.widgets import DataTable, TableColumn df = pd.DataFrame({'a': range(10,50), 'b': range(110,150)}) source_foo = ColumnDataSource(data=df.loc[df['a'] < 25]) source_bar = ColumnDataSource(data=df.loc[df['a'] > 25]) source_fill = ColumnDataSource

Can one switch between output_notebook and output_file within an IPython notebook session with Bokeh?

久未见 提交于 2020-01-23 04:48:55
问题 I'm wondering if it is possible to generate static HTML output and inline plots using Bokeh in the same IPython notebook. What I am currently seeing is that once I either call output_notebook() or output_file("myfile.html") I am stuck using that output modality. For example, if I initially use output_notebook , subsequently calling output_file does not create an output file. 回答1: reset_output() before the next output_notebook or output_file call works at least in version 0.10.0 . # cell 1

Right way to plot live data with django and bokeh

只谈情不闲聊 提交于 2020-01-23 04:33:25
问题 i have a bokeh plot embedded in a django app. I create the plot in the django view and push the plot to the bokeh server to show the plot in my webpage. #view.py def view_plot(request): f=figure() f.plot(#some data#) session = push_session(curdoc()) context = {'script': autoload_server(f, session_id=session.id)} return render_to_response('plot.html', context=context) It all works quite good. Now I want to do a live plot, every time when a new DB-Entry is created the plot should be updated. I

Highlighting multiple hex_tiles by hovering in bokeh

╄→гoц情女王★ 提交于 2020-01-23 04:01:26
问题 I try to visualize my data in a hex map. For this I use python bokeh and the corresponding hex_tile function in the figure class. My data belongs to one of 8 different classes, each having a different color. The image below shows the current visualization: I would like to add the possibility to change the color of the element (and ideally all its class members) when the mouse hovers over it. I know, that it is somewhat possible, as bokeh themselves provide the following example: https://docs

Why does a running bokeh server display an empty page?

无人久伴 提交于 2020-01-23 03:25:08
问题 I am trying to reproduce the very first example from Metthew Rocklin blogpost. The description on how to run a Bokeh server is comprehensive, but I still cannot get it working. I am running the following script on the windows shell with command "bokeh serve big_bokeh_test.py --show": from bokeh.server.server import Server from bokeh.application import Application from bokeh.application.handlers.function import FunctionHandler from bokeh.plotting import figure, ColumnDataSource def make