ssb-sgis 1.2.12__tar.gz → 1.2.13__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/PKG-INFO +1 -1
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/pyproject.toml +1 -1
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/httpserver.py +25 -13
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/LICENSE +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/README.md +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/__init__.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/conf.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/debug_config.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/exceptions.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/__init__.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/bounds.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/buffer_dissolve_explode.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/centerlines.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/cleaning.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/conversion.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/duplicates.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/general.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/geocoding.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/geometry_types.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/neighbors.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/overlay.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/point_operations.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/polygon_operations.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/polygons_as_rings.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/runners.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/sfilter.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/geopandas_tools/utils.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/helpers.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/io/__init__.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/io/_is_dapla.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/io/dapla_functions.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/io/opener.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/io/read_parquet.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/__init__.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/examine.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/explore.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/legend.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/map.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/maps.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/norge_i_bilder.json +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/thematicmap.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/tilesources.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/maps/wms.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/__init__.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/_get_route.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/_od_cost_matrix.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/_points.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/_service_area.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/closing_network_holes.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/cutting_lines.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/directednetwork.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/finding_isolated_networks.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/network.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/networkanalysis.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/networkanalysisrules.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/nodes.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/networkanalysis/traveling_salesman.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/parallel/__init__.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/parallel/parallel.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/py.typed +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/raster/__init__.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/raster/base.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/raster/image_collection.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/raster/indices.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/raster/regex.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/raster/sentinel_config.py +0 -0
- {ssb_sgis-1.2.12 → ssb_sgis-1.2.13}/src/sgis/raster/zonal.py +0 -0
|
@@ -24,21 +24,33 @@ def run_html_server(contents: str | None = None, port: int = 3000) -> None:
|
|
|
24
24
|
if "JUPYTERHUB_SERVICE_PREFIX" in os.environ:
|
|
25
25
|
# Create a link using the https://github.com/jupyterhub/jupyter-server-proxy
|
|
26
26
|
display_address = os.environ["JUPYTERHUB_SERVICE_PREFIX"] + f"proxy/{port}/"
|
|
27
|
-
stop_address = os.environ["JUPYTERHUB_SERVICE_PREFIX"] + f"proxy/{port}/stop"
|
|
28
|
-
display_content = HTML(
|
|
29
|
-
|
|
30
|
-
<p>Click <a href='{display_address}'>here</a> to open in browser.</p>
|
|
31
|
-
<p>Click <a href='{stop_address}'>here</a> to stop.</p>
|
|
32
|
-
"""
|
|
33
|
-
)
|
|
27
|
+
# stop_address = os.environ["JUPYTERHUB_SERVICE_PREFIX"] + f"proxy/{port}/stop"
|
|
28
|
+
# display_content = HTML(
|
|
29
|
+
# f"""
|
|
30
|
+
# <p>Click <a href='{display_address}'>here</a> to open in browser.</p>
|
|
31
|
+
# <p>Click <a href='{stop_address}'>here</a> to stop.</p>
|
|
32
|
+
# """
|
|
33
|
+
# )
|
|
34
|
+
elif (
|
|
35
|
+
"VSCODE_PROXY_URI" in os.environ
|
|
36
|
+
and "{{port}}" in os.environ["VSCODE_PROXY_URI"]
|
|
37
|
+
):
|
|
38
|
+
display_address = os.environ["VSCODE_PROXY_URI"].replace("{{port}}", str(port))
|
|
34
39
|
else:
|
|
35
40
|
display_address = f"http://localhost:{port}"
|
|
36
|
-
display_content = HTML(
|
|
37
|
-
|
|
38
|
-
<p>Click <a href='http://localhost:{port}'>here</a> to open in browser.</p>
|
|
39
|
-
<p>Click <a href='http://localhost:{port}/stop'>here</a> to stop.<p>"
|
|
40
|
-
"""
|
|
41
|
-
)
|
|
41
|
+
# display_content = HTML(
|
|
42
|
+
# f"""
|
|
43
|
+
# <p>Click <a href='http://localhost:{port}'>here</a> to open in browser.</p>
|
|
44
|
+
# <p>Click <a href='http://localhost:{port}/stop'>here</a> to stop.<p>"
|
|
45
|
+
# """
|
|
46
|
+
# )
|
|
47
|
+
stop_address = f"{display_address}/stop"
|
|
48
|
+
display_content = HTML(
|
|
49
|
+
f"""
|
|
50
|
+
<p>Click <a href='{display_address}'>here</a> to open in browser.</p>
|
|
51
|
+
<p>Click <a href='{stop_address}'>here</a> to stop.</p>
|
|
52
|
+
"""
|
|
53
|
+
)
|
|
42
54
|
|
|
43
55
|
class HTTPServerRequestHandler(BaseHTTPRequestHandler):
|
|
44
56
|
"""A handler of request for the server, hosting static content."""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|