Skip to content

Commit fe74cbf

Browse files
committed
Open JGIS in sidecar
1 parent 938fd80 commit fe74cbf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/jupytergis_lab/jupytergis_lab/notebook/geo_debug.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# from jupyterlab import
1+
from sidecar import Sidecar
22

33
from jupytergis_lab import GISDocument
44

@@ -27,4 +27,7 @@ def geo_debug(geojson_path: str) -> None:
2727
# TODO: Activate left and right panel -- not sure how feasible yet from Python.
2828
# Also, if using sidecar, right panel can't be displayed. Can we open a
2929
# "native" JupyterLab pane instead of using sidecar?
30-
display(doc)
30+
31+
sc = Sidecar(title="JupyterGIS sidecar")
32+
with sc:
33+
display(doc)

0 commit comments

Comments
 (0)