Skip to content

docs/tutorials: four beginner tutorials updated to run as notebooks (#944) - #1293

Merged
lmoresi merged 1 commit into
developmentfrom
docs/tutorials-run-944
Nov 20, 2026
Merged

lmoresi merged 1 commit into
developmentfrom
docs/tutorials-run-944

Conversation

@lmoresi

@lmoresi lmoresi commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

The beginner tutorials, part of #944, executed as notebooks on development the way a reader runs them (jupyter nbconvert --execute, 300 s per cell, macOS 12-core Apple M4, serial).

Outcome on development (1e10c63)

11 of 18 pass: 1, 2, 4, 5, 6, 7, 13, 14, 16, 17 and Notebook_Index. The 7 that fail:

tutorial cause here
8-Timestepping-coupled estimate_dt().squeeze(): it returns a float fixed, passes
9-Unsteady_Flow writes to Example_output/, which does not exist fixed (folder made), passes
10-Particle_Swarms writes into mesh.X.coords and calls _deform_mesh, refused on a mesh with variables fixed (mesh.deform on a copy), passes
12-Units_System 300 + 2.6 * y in metres, assigned to a temperature; a plain velocity assigned to a field with units both fixed; it then stops at non_dimensionalise(temperature / velocity[0]), a library gap (UNFILED 41, units desk)
3-Symbolic_Forms s.diff(x) + s.diff(y): UnitAwareDerivativeMatrix has no arithmetic library (UNFILED 40, units desk); not changed here
15-Thermal-convection-with-units non_dimensionalise refuses a uw.expression holding a quantity library (UNFILED 41); not changed here
11-Multi-Material_SolCx uw.pause(...), which stops automated execution by design not a failure

The edits

They are made in the notebooks' JSON source lines only: 9 lines added and 7 removed, with no output cells, metadata or formatting touched.

Tolerances and coordinate matches

None.

Tests

Notebooks 8, 9 and 10 executed after the change: all pass. Notebook 12 executed: it passes the two fixed cells and stops at the library gap above. The five cheapest passing tutorials join the docs examples gate (#944 part C) in a follow-up.

Underworld development team with AI support from Claude Code

…944)

- 8-Timestepping-coupled: estimate_dt() returns a float; no .squeeze().
- 9-Unsteady_Flow: the output folder is made before the loop writes to it.
- 10-Particle_Swarms: the mesh is moved by mesh.deform on a copy of its
  coordinates (it wrote into mesh.X.coords and called _deform_mesh, which
  the library refuses on a mesh with variables).
- 12-Units_System: the initial temperature is 300 K + 2.6 K/m * y as
  quantities (in metres, its sum was refused as a temperature), and the
  velocity is set by component with quantities. It then stops at
  non_dimensionalise(temperature / velocity[0]), which the library does not
  take yet (UNFILED 41, the units desk).

Underworld development team with AI support from Claude Code
Copilot AI balanced review requested due to automatic review settings November 20, 2026 12:44

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants