Now you can interactively view raster and vector layers without launching a desktop GIS or Jupyter.
Just run:
pip install "leafmap[viewer]"
Then visualize data with a single command:
view-raster /path/to/raster.tif
view-vector /path/to/vector.geojsonNeed to customize the display:
view-raster /path/to/raster.tif --band 1 --colormap coolwarm
view-vector /path/to/vector.geojson --style liberty
These CLI utilities are based on Leafmap, MapLibre, and LocalTileserver and support all formats compatible with rasterio and geopandas.
See here: https://github.com/opengeos/leafmap
👉 @codeprogrammer