Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion distributed/dashboard/components/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
ColumnDataSource,
CustomJSHover,
DataRange1d,
DatetimeTickFormatter,
FactorRange,
GroupFilter,
HelpTool,
Expand Down Expand Up @@ -52,6 +53,7 @@
from bokeh.themes import Theme
from bokeh.transform import cumsum, factor_cmap, linear_cmap, stack
from jinja2 import Environment, FileSystemLoader
from packaging.version import parse as parse_version
from tlz import curry, pipe, second, valmap
from tlz.curried import concat, groupby, map

Expand All @@ -76,6 +78,7 @@
)
from distributed.dashboard.utils import (
_DATATABLE_STYLESHEETS_KWARGS,
BOKEH_VERSION,
PROFILING,
transpose,
update,
Expand Down Expand Up @@ -2192,7 +2195,9 @@ def task_stream_figure(clear_interval="20s", **kwargs):
x_range=x_range,
y_range=y_range,
toolbar_location="above",
x_axis_type="datetime",
x_axis_type=(
"timedelta" if BOKEH_VERSION >= parse_version("3.8.0") else "datetime"
),
y_axis_location=None,
tools="",
min_border_bottom=50,
Expand All @@ -2216,6 +2221,12 @@ def task_stream_figure(clear_interval="20s", **kwargs):
root.yaxis.major_label_text_alpha = 0
root.yaxis.minor_tick_line_alpha = 0
root.yaxis.major_tick_line_alpha = 0
if BOKEH_VERSION < parse_version("3.8.0") and BOKEH_VERSION >= parse_version(
"3.5.2"
):
root.xaxis[0].formatter = DatetimeTickFormatter(
boundary_scaling=False, context=None
) # remove full date context misleading for users
root.xgrid.visible = False

hover = HoverTool(
Expand Down
Loading