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

Vaclav Petras noreply at github.com
Thu May 7 18:55:22 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: c90c9a4ccee4cd6454a5555a0cd6f3cdb542475c
      https://github.com/OSGeo/grass/commit/c90c9a4ccee4cd6454a5555a0cd6f3cdb542475c
  Author: Vaclav Petras <wenzeslaus at gmail.com>
  Date:   2026-05-07 (Thu, 07 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