Skip to content

Commit

Permalink
Update to Bokeh 3.5 (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro authored Jul 29, 2024
1 parent adb2cd7 commit 8a14f9c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions geoviews/models/checkpoint_tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export class CheckpointTool extends ActionTool {
static {
this.prototype.default_view = CheckpointToolView

this.define<CheckpointTool.Props>(({Array, Ref}) => ({
sources: [ Array(Ref(ColumnDataSource)), [] ],
this.define<CheckpointTool.Props>(({List, Ref}) => ({
sources: [ List(Ref(ColumnDataSource)), [] ],
}))
}

Expand Down
4 changes: 2 additions & 2 deletions geoviews/models/clear_tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export class ClearTool extends ActionTool {
static {
this.prototype.default_view = ClearToolView

this.define<ClearTool.Props>(({Array, Ref}) => ({
sources: [ Array(Ref(ColumnDataSource)), [] ],
this.define<ClearTool.Props>(({List, Ref}) => ({
sources: [ List(Ref(ColumnDataSource)), [] ],
}))
}

Expand Down
4 changes: 2 additions & 2 deletions geoviews/models/restore_tool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export class RestoreTool extends ActionTool {
static {
this.prototype.default_view = RestoreToolView

this.define<RestoreTool.Props>(({Array, Ref}) => ({
sources: [ Array(Ref(ColumnDataSource)), [] ],
this.define<RestoreTool.Props>(({List, Ref}) => ({
sources: [ List(Ref(ColumnDataSource)), [] ],
}))
}

Expand Down
5 changes: 3 additions & 2 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ lint = ["py311", "lint"]
download-data = ["download-data"]

[dependencies]
bokeh = ">=3.4.0,<3.5.0"
bokeh = "3.5.*"
cartopy = ">=0.18.0"
holoviews = ">=1.16.0"
nodejs = "20.9.*" # 20.12.2 breaks bokeh build on Windows: https://github.com/bokeh/bokeh/pull/13851, removed with Bokeh 3.5
nodejs = ">=20"
numpy = "*"
packaging = "*"
panel = ">=1.0.0"
Expand All @@ -46,6 +46,7 @@ python = "3.11.*"
python = "3.12.*"

[feature.example.dependencies]
bokeh_sampledata = "*"
datashader = "*"
fiona = "*"
geopandas-base = "*"
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling", "hatch-vcs", 'bokeh ==3.4']
requires = ["hatchling", "hatch-vcs", 'bokeh ==3.5']
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -27,7 +27,7 @@ classifiers = [
]

dependencies = [
'bokeh >=3.4.0,<3.5.0',
'bokeh >=3.5.0,<3.6.0',
'cartopy >=0.18.0',
'holoviews >=1.16.0',
'numpy',
Expand Down
3 changes: 0 additions & 3 deletions scripts/download_data.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
from contextlib import suppress
from pathlib import Path

import bokeh.sampledata

BASE_PATH = Path(__file__).resolve().parents[1]

bokeh.sampledata.download()

with suppress(ImportError):
import pyct.cmd
Expand Down

0 comments on commit 8a14f9c

Please sign in to comment.