A Jupyter / Leaflet bridge enabling interactive maps in the Jupyter notebook.
Selecting a basemap for a leaflet map:
Loading a geojson map:
Making use of leafletjs primitives:
Using the splitmap control:
Displaying velocity data on the top of a map:
conda install -c conda-forge ipyleaflet
pip install ipyleaflet
If you are using the classic Jupyter Notebook < 5.3 you need to run this extra command:
jupyter nbextension enable --py --sys-prefix ipyleaflet
If you are using JupyterLab, you will need to install the JupyterLab extension:
jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-leaflet
Installation from sources
For a development installation (requires npm, you can install it with
conda install -c conda-forge nodejs):
git clone https://github.com/jupyter-widgets/ipyleaflet.git cd ipyleaflet pip install -e .
If you are using the classic Jupyter Notebook you need to install the nbextension:
jupyter nbextension install --py --symlink --sys-prefix ipyleaflet jupyter nbextension enable --py --sys-prefix ipyleaflet
If you are using JupyterLab, you need to install the labextension for ipywidgets and ipyleaflet:
jupyter labextension install @jupyter-widgets/jupyterlab-manager js
Note for developers:
-epip option allows one to modify the Python code in-place. Restart the kernel in order to see the changes.
npm run watch
If you are on JupyterLab you also need to run the following in a separate terminal:
jupyter lab --watch
To get started with using
ipyleaflet, check out the full documentation
We use a shared copyright model that enables all contributors to maintain the copyright on their contributions.
This software is licensed under the BSD-3-Clause license. See the LICENSE file for details.
ipyleaflet repository includes the
jupyter-leaflet npm package, which
is a front-end component, and the
ipyleaflet python package which is the
backend for the Python Jupyter kernel.
provides a backend to
jupyter-leaflet for the "xeus-cling" C++ Jupyter