Skip to content
This repository was archived by the owner on Jul 7, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions ci/gpu/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ gpuci_conda_retry install -y \
"cuspatial=$MINOR_VERSION.*" \
"dask-cudf=$MINOR_VERSION.*" "dask-cuda=$MINOR_VERSION.*" \
"numba>=0.51.2" \
"bokeh<=2.2.3" \
"bokeh>=2.3.2,<2.4" \
"rapids-build-env=$MINOR_VERSION.*" \
"rapids-notebook-env=$MINOR_VERSION.*"

# https://docs.rapids.ai/maintainers/depmgmt/
# conda remove -f rapids-build-env rapids-notebook-env
# conda remove --force rapids-build-env rapids-notebook-env
# conda install "your-pkg=1.0.0"

gpuci_logger "Check versions"
Expand Down
2 changes: 1 addition & 1 deletion conda/environments/cuxfilter_dev_cuda10.1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:
- pyproj>=2.4, <=3.1
- libwebp
- pandoc=<2.0.0
- bokeh>=2.1.1,<=2.2.3
- bokeh>=2.3.2,<2.4
- panel>=0.10.3
- cudatoolkit=10.1
- nodejs
Expand Down
2 changes: 1 addition & 1 deletion conda/environments/cuxfilter_dev_cuda10.2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies:
- pyproj>=2.4, <=3.1
- libwebp
- pandoc=<2.0.0
- bokeh>=2.1.1,<=2.2.3
- bokeh>=2.3.2,<2.4
- panel>=0.10.3
- cudatoolkit=10.2
- nodejs
Expand Down
2 changes: 1 addition & 1 deletion conda/environments/cuxfilter_dev_cuda11.0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies:
- pyproj>=2.4, <=3.1
- libwebp
- pandoc=<2.0.0
- bokeh>=2.1.1,<=2.2.3
- bokeh>=2.3.2,<2.4
- panel>=0.10.3
- cudatoolkit=11.0
- nodejs
Expand Down
2 changes: 1 addition & 1 deletion conda/recipes/cuxfilter/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ requirements:
- numba >=0.51.2
- cupy >=7.8.0,<10.0.0a0
- panel >=0.10.3
- bokeh >=2.1.1,<=2.2.3
- bokeh >=2.3.2,<2.4
- pyproj >=2.4, <=3.1
- geopandas >=0.9.0,<0.10.0a0
- nodejs >=12,<15
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from bokeh.core.properties import Image, Bool, String
from bokeh.core.properties import Image, Bool, String, Nullable
from bokeh.models import Tool
from bokeh.util.compiler import TypeScript

Expand All @@ -13,7 +13,7 @@
super.connect_signals()

this.connect(this.model.properties.active.change, () => {
this.model._active = this.model.properties.active.spec.value
this.model._active = this.model.active
})
}
}
Expand Down Expand Up @@ -53,6 +53,6 @@

class CustomInspectTool(Tool):
__implementation__ = TypeScript(TS_CODE)
_active = Bool
_active = Nullable(Bool)
icon = Image()
tool_name = String
tool_name = String()
30 changes: 7 additions & 23 deletions python/cuxfilter/layouts/custom_react_template.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
from urllib.parse import urljoin
from panel import depends
import param
from panel.io.resources import LOCAL_DIST
from panel.io.state import state
from panel.util import url_path
from panel.depends import depends
from panel.layout import Card, GridSpec
from panel.template.base import BasicTemplate
import os
Expand Down Expand Up @@ -70,30 +66,18 @@ class ReactTemplate(BasicTemplate):
}

def _template_resources(self):
name = type(self).__name__.lower()
base_url = state.base_url
if state.base_url.startswith("/"):
base_url = state.base_url[1:]
dist_path = urljoin(base_url, LOCAL_DIST)
# External resources
css_files = dict(self._resources["css"])
for cssname, css in css_files.items():
css_path = url_path(css)
css_files[cssname] = dist_path + f"bundled/{name}/{css_path}"
js_files = dict(self._resources["js"])
for jsname, js in js_files.items():
js_path = url_path(js)
js_files[jsname] = dist_path + f"bundled/{name}/{js_path}"

resources = super()._template_resources()
# CSS files
base_css = os.path.basename(self._css)
css_files["base"] = f"{CUSTOM_DIST_PATH_LAYOUTS}/{base_css}"
resources["css"]["base"] = f"{CUSTOM_DIST_PATH_LAYOUTS}/{base_css}"
if self.theme:
theme = self.theme.find_theme(type(self))
if theme and theme.css:
basename = os.path.basename(theme.css)
css_files["theme"] = f"{CUSTOM_DIST_PATH_THEMES}/{basename}"
return {"css": css_files, "js": js_files}
resources["css"][
"theme"
] = f"{CUSTOM_DIST_PATH_THEMES}/{basename}"
return resources

def __init__(self, **params):
if "main" not in params:
Expand Down