diff --git a/bindings/pydeck-carto/pydeck_carto/layer.py b/bindings/pydeck-carto/pydeck_carto/layer.py index 40437d48f43..eb2622a9c00 100644 --- a/bindings/pydeck-carto/pydeck_carto/layer.py +++ b/bindings/pydeck-carto/pydeck_carto/layer.py @@ -1,7 +1,7 @@ import pydeck as pdk H3_VERSION = "~3.7.*" -DECKGL_VERSION = "~8.8.*" +DECKGL_VERSION = "~8.9.*" LIBRARIES_TO_INCLUDE = [ f"npm/h3-js@{H3_VERSION}/dist/h3-js.umd.js", diff --git a/bindings/pydeck/pydeck/frontend_semver.py b/bindings/pydeck/pydeck/frontend_semver.py index 8d9c8cc7f49..576afb69826 100644 --- a/bindings/pydeck/pydeck/frontend_semver.py +++ b/bindings/pydeck/pydeck/frontend_semver.py @@ -1 +1 @@ -DECKGL_SEMVER = "~8.8.*" +DECKGL_SEMVER = "~8.9.*" diff --git a/bindings/pydeck/pydeck/io/html.py b/bindings/pydeck/pydeck/io/html.py index 0e98387f883..8157b5d394a 100644 --- a/bindings/pydeck/pydeck/io/html.py +++ b/bindings/pydeck/pydeck/io/html.py @@ -21,7 +21,8 @@ def in_jupyter(): def convert_js_bool(py_bool): - if type(py_bool) is bool: + """Serializes Python booleans to JavaScript. Returns non-boolean values unchanged.""" + if type(py_bool) is not bool: return py_bool return "true" if py_bool else "false" diff --git a/bindings/pydeck/requirements/requirements-dev.txt b/bindings/pydeck/requirements/requirements-dev.txt index 91e316123b7..194e1abaf74 100644 --- a/bindings/pydeck/requirements/requirements-dev.txt +++ b/bindings/pydeck/requirements/requirements-dev.txt @@ -11,7 +11,7 @@ flake8 requests sphinx recommonmark -jupyterlab +jupyterlab<4.0.0 ipython>=5.8.0;python_version<"3.4" semver # necessary for PEP440-compliant semantic versions sphinx-markdown-builder diff --git a/modules/carto/bundle.ts b/modules/carto/bundle.ts index 6f649d0228b..76fdb2508b8 100644 --- a/modules/carto/bundle.ts +++ b/modules/carto/bundle.ts @@ -3,3 +3,7 @@ import * as CartoUtils from './src'; export * from '../layers/bundle/peer-dependency'; export const carto = CartoUtils; + +// Export carto layer library for pydeck integration +// More info: https://github.com/ajduberstein/pydeck_custom_layer +globalThis.CartoLayerLibrary = CartoUtils;