mkaouri / pygeojs

A Python/GeoJS bridge utilizing the Jupyter widget infrastructure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pygeojs

ipywidget wrapper for GeoJS

Installation

Before installing, setup a virtual environment and install jupyter there. Then install either a release or developer version as follows.

For a release installation, use pip:

$ pip install pygeojs
$ jupyter nbextension enable --py --sys-prefix @johnkit/pygeojs
$ jupyter labextension install @johnkit/pygeojs

For a development installation (requires pip & npm),

$ git clone https://github.com//pygeojs.git
$ cd pygeojs
$ cd js
$ npm install
$ cd ..
$ pip install -e .
$ jupyter nbextension install --py --symlink --sys-prefix pygeojs
$ jupyter nbextension enable --py --sys-prefix pygeojs
$ jupyter labextension install js

If you change any autogen scripts/files, you can run

npm run autogen

to regenerate the js and python wrapper files.

About

A Python/GeoJS bridge utilizing the Jupyter widget infrastructure


Languages

Language:JavaScript 69.8%Language:Jupyter Notebook 13.8%Language:Python 13.3%Language:HTML 2.6%Language:Dockerfile 0.6%