Skip to content

Commit

Permalink
Raise an ImportError for the Python API in JupyterLite
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Sep 18, 2024
1 parent 283d106 commit f2826c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/jupytergis_lab/jupytergis_lab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@
import warnings
__version__ = "dev"

from .notebook import GISDocument # noqa
import sys

if sys.platform == "emscripten":
raise ImportError("Cannot use the JupyterGIS Python API in a JupyterLite kernel yet")

from .notebook import GISDocument # noqa

def _jupyter_labextension_paths():
return [{"src": "labextension", "dest": "@jupytergis/jupytergis-lab"}]

0 comments on commit f2826c8

Please sign in to comment.