Skip to content

Instantly share code, notes, and snippets.

View ktaletsk's full-sized avatar

Konstantin Taletskiy ktaletsk

View GitHub Profile
@JaimeEnergy
JaimeEnergy / prevent_vertical_scrolling.py
Created April 14, 2017 08:11
Bokeh Gantt Chart: Use CustomJS to prevent vertical scrolling
from bokeh.models.callbacks import CustomJS
jscode="""
range.set('start', parseInt(%s));
range.set('end', parseInt(%s));
"""
yrange = subplot.y_range
yrange.start, yrange.end = 0, plot_height
subplot.y_range.callback = CustomJS(