Post #2130367
2026-01-22 18:57 UTC
@hugovk @savannah Unfortunately, the error message "NameError: name 'word' is not defined" or "NameError: name 'prefix' is not defined" appears in later code blocks.
Replies (1)
-
@hugovk@mastodon.social 2026-01-22 19:19
@veit @savannah Yep, it's just a quick demo. Those later code blocks follow on from earlier examples, so we'd maybe need to include the initialisation code and add support for :lineno-start: https://www.sphinx-doc.org/en/master/usage/restructuredtext/directives.html#directive-code-block