Skip to main content

A widget that enables you to use HERE Maps API for JavaScript in Jupyter Notebook.

Project description

HERE Map Widget for Jupyter

Tests PyPI - Status PyPI - Python Version PyPI - Python Version PyPI - License Downloads Binder

Use HERE Maps API for JavaScript in your Jupyter Notebook.

Usage

Selecting a basemap:

Select base map

Loading a GeoJSON data on a map:

Use GeoJSON on map

Making use of HERE Maps API for JavaScript primitives such as Marker to draw a SVG icon on the map:

Add marker to map

Using the search control to search GeoJSON layer data:

Add search control to map

Displaying GeoPandas data on map:

Add Geopandas data to map

Displaying XYZ Hub or HERE Data Hub space data on a map:

Add XYZ data to map

Use ipywidgets controls to build an interactive GUI:

Add ipywidgets controls

Prerequisites

Before you can install this package, or use the example notebooks to make sure your system meets the following prerequisities:

Installation

Install HERE Map Widget for Jupyter from PyPI using the below command:

$ pip install here-map-widget-for-jupyter

Below extra commands are required only if you are using classic Jupyter Notebook (version 5.3 or older):

$ jupyter nbextension install --py --sys-prefix here_map_widget
$ jupyter nbextension enable here_map_widget --py --sys-prefix

Below extra commands are required only if you are using JupyterLab (version 2 or older):

$ npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/
$ jupyter labextension install @jupyter-widgets/jupyterlab-manager @here/map-widget-for-jupyter

Installation from source repository on GitHub

For a development installation (requires yarn, you can install it with conda install -c conda-forge yarn):

$ npm config set @here:registry https://repo.platform.here.com/artifactory/api/npm/here-node/
$ git clone https://github.com/heremaps/here-map-widget-for-jupyter.git
$ cd here-map-widget-for-jupyter
$ pip install -e .

If you are using the classic Jupyter Notebook you need to install the nbextension:

$ jupyter nbextension install --py --sys-prefix here_map_widget
$ jupyter nbextension enable here_map_widget --py --sys-prefix

Note for developers:

  • the -e pip option allows one to modify the Python code in-place. Restart the kernel in order to see the changes.
  • the --symlink argument on Linux or OS X allows one to modify the JavaScript code in-place. This feature is not available with Windows.

For developing with JupyterLab:

$ jupyter labextension develop here_map_widget

Documentation

Documentation is available here

License

Copyright (C) 2019-2021 HERE Europe B.V.

Unless otherwise noted in LICENSE files for specific directories, the LICENSE in the root applies to all content in this repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

here-map-widget-for-jupyter-1.0.0.tar.gz (19.7 MB view details)

Uploaded Source

Built Distribution

here_map_widget_for_jupyter-1.0.0-py2.py3-none-any.whl (5.4 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file here-map-widget-for-jupyter-1.0.0.tar.gz.

File metadata

  • Download URL: here-map-widget-for-jupyter-1.0.0.tar.gz
  • Upload date:
  • Size: 19.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for here-map-widget-for-jupyter-1.0.0.tar.gz
Algorithm Hash digest
SHA256 73832a26ab4af22c5048ab268be0627c555cefcad8e710bc799cb2da5ac532e8
MD5 0d6f0deec1dd5df8d1034f6402539e97
BLAKE2b-256 09994418e2e5d3ea392a83504884434bbba65f1300abf6517f630575f7159413

See more details on using hashes here.

File details

Details for the file here_map_widget_for_jupyter-1.0.0-py2.py3-none-any.whl.

File metadata

  • Download URL: here_map_widget_for_jupyter-1.0.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2

File hashes

Hashes for here_map_widget_for_jupyter-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e7ef2b3aa05e496a372a1ec3abc0eb4b20c05a1d373988cdacbf54f553c749b5
MD5 ef26357424d168a801f731ef4647c047
BLAKE2b-256 04ebd733d15ef8446107353ca558c6ee92eb64814146e00d765d44678bc68a07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page