Getting started
Installation¶
Install kharita into the Python environment your notebooks use.
Install¶
kharita is not on PyPI yet. Until the 0.1.0 release, install it from GitHub:
It needs Python 3.11 or newer and brings numpy, geopandas and Lonboard with it.
Optional extras¶
| Extra | Adds | Needed for |
|---|---|---|
terrain |
contourpy, Pillow | kh.contours() |
demo |
overturemaps | downloading city roads and buildings in the gallery notebooks |
docs |
MkDocs Material | building this site |
dev |
pytest, ruff, JupyterLab | working on kharita itself |
Check it works¶
import kharita as kh
kh.help() # every utility, one line each
kh.explain("fill-[pop] ramp-viridis scheme-q5") # what a style compiles to
Where maps show¶
Maps display in Jupyter, JupyterLab, VS Code notebooks and Google Colab. In Colab, run the install line in a cell first, starting with !. Exported pages open in any modern browser.
Internet
Basemaps, relief, satellite imagery and elevation tiles stream from open servers, so maps need internet when they are drawn. Your data stays in your notebook.