Skip to content

Commit 5bb0cab

Browse files
meastyshaneahmed
andauthored
📌 Fix Compatibility with bokeh Version 3.5.0 (#832)
- Update for compatibility with bokeh 3.5 --------- Co-authored-by: Shan E Ahmed Raza <[email protected]>
1 parent 138e84a commit 5bb0cab

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

requirements/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# torch installation
22
--extra-index-url https://download.pytorch.org/whl/cu118; sys_platform != "darwin"
33
albumentations>=1.3.0
4-
bokeh>=3.1.1, <3.5.0
4+
bokeh>=3.1.1
55
Click>=8.1.3
66
defusedxml>=0.7.1
77
filelock>=3.9.0

tiatoolbox/visualization/bokeh_app/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
Column,
2929
ColumnDataSource,
3030
CustomJS,
31+
CustomJSTickFormatter,
3132
DataTable,
3233
Div,
3334
Dropdown,
34-
FuncTickFormatter,
3535
Glyph,
3636
HoverTool,
3737
HTMLTemplateFormatter,
@@ -630,7 +630,7 @@ def __init__(self: ViewerState, slide_path: str | Path) -> None:
630630
self.thickness = -1
631631
self.model_mpp = 0
632632
self.init = True
633-
self.micron_formatter = FuncTickFormatter(
633+
self.micron_formatter = CustomJSTickFormatter(
634634
args={"mpp": 0.1},
635635
code="""
636636
return Math.round(tick*mpp)

0 commit comments

Comments
 (0)