[GRASS-git] [OSGeo/grass] 1757de: doc: Migrate notebooks to grass.tools API (#7360)

Vaclav Petras noreply at github.com
Thu May 7 21:26:48 PDT 2026


  Branch: refs/heads/releasebranch_8_5
  Home:   https://github.com/OSGeo/grass
  Commit: 1757de5877e2878610206bda8c0211fd5291bd2c
      https://github.com/OSGeo/grass/commit/1757de5877e2878610206bda8c0211fd5291bd2c
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2026-05-08 (Fri, 08 May 2026)

  Changed paths:
    M doc/examples/notebooks/hydrology.ipynb
    M doc/examples/notebooks/jupyter_example.ipynb
    M doc/examples/notebooks/jupyter_tutorial.ipynb
    M doc/examples/notebooks/parallelization_tutorial.ipynb
    M doc/examples/notebooks/scripting_example.ipynb
    M doc/examples/notebooks/solar_potential.ipynb
    M doc/examples/notebooks/temporal.ipynb
    M doc/examples/notebooks/viewshed_analysis.ipynb
    M doc/jupyter_intro_images.ipynb

  Log Message:
  -----------
  doc: Migrate notebooks to grass.tools API (#7360)

Replace grass.script command functions (gs.run_command, gs.parse_command, gs.read_command, gs.write_command, gs.mapcalc, gs.list_strings) with grass.tools.Tools across the doc/ notebooks.

The migration of parallelization_tutorial.ipynb is partial and the tutorial is actually (already) broken in Binder (info there is still valid, so it is a fully usable tutorial).

Also fixes the SeriesMap example in jupyter_tutorial.ipynb so it works with the nc_basic_spm_grass7 dataset, where "lakes" is a raster, not a vector: replace "lakes" with "roadsmajor".

Set, but don't always read computational region. Use JSON to get zones (much simpler). Updates intros.

---------

Co-authored-by: Anna Petrasova <kratochanna at gmail.com>



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications


More information about the grass-commit mailing list