A JupyterLab extension for GeoJS
Last updated Oct 28, 2024
17
Stars
4
Forks
25
Issues
0
Stars/day
Attention Score
7
Language breakdown
No language data available.
▸ Files
click to expand
README
jupyterlab_geojs
A JupyterLab notebook extension for rendering geospatial data using the GeoJS front end library

Prerequisites
- JupyterLab ^0.32.1 and Notebook >=5.5.0
Usage
To render GeoJS output in JupyterLab:
from jupyterlab_geojs import Scene
scene = Scene()
osmlayer = scene.createlayer('osm')
scene
The notebooks folder contains examples.
Install
# Install this lab extension
jupyter labextension install @johnkit/jupyterlab_geojs
Also need to install the widget-manager extension
jupyter labextension install @jupyter-widgets/jupyterlab-manager
Install the python package
pip install jupyterlab_geojs
Development
# Install python package
pip install -e .
Install widget-manager extension
jupyter labextension install @jupyter-widgets/jupyterlab-manager
Install js dependencies
npm install
Build Typescript source
jlpm build
Link your development version of the extension with JupyterLab
jupyter labextension link .
Run
jupyter lab
Rebuild Typescript source after making changes
jlpm build
Rebuild JupyterLab after making any changes
jupyter lab build
For testing, see README.md in test/ folder.
🔗 More in this category