# Feedback Wanted - Tutorial / Lesson Feature

**URL:** <https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577>\
**Category:** General Discussion\
**Created:** [November 4, 2026, 10:52pm UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577 "2026-11-04T22:52:31Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 4, 2026, 10:52pm UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/1 "2026-11-04T22:52:32Z")

</div>

A student here is working with some colleagues to add “tutorials” - which would include UI highlighting (e.g., “switch to the measure tool”) and interactive questions.

I’d like some feedback in terms of syntax and the kinds of questions.

- A panel shows what to do.
- An **orange** outline points at the button or menu to use. (Color ideas?)
- Each step moves on once the student has done it: picked the right tool, built the right molecule, run Optimize Geometry, or typed in a correct measurement.

### A tutorial is a Markdown file

- `#` is the tutorial’s title, and the paragraph after it is a short description.
- Each `##` heading starts a step. Its text is what the student reads.
- A step can include a small `do` block that says what the student should do. The outline then points at each thing in turn, and the step checks itself.

Here is a complete, short tutorial:

````markdown
# Bond Angles and Lone Pairs

Build ammonia and see how a lone pair squeezes the bond angle.

## Build ammonia

Start a new molecule, pick the {tool:draw}, choose **Nitrogen** , and click
once in the 3D view. Avogadro adds the hydrogens for you.

```do
new
tool draw
element N
set adjust-hydrogens on
build NH3 | Click once on an empty spot
  if H2O: That's water. Press {key:Undo}, choose Nitrogen (7), and click again.
  if 2 NH3: You've made two ammonia molecules. Press {key:Undo} to undo one.
```

## Clean up the shape

Choose {menu:optimize}. Avogadro uses a force field to find a sensible shape.

```do
optimize
```

## Measure the H–N–H angle

Pick the {tool:measure}, then click H, N, H **in that order**. The middle atom
is the corner of the angle. Type the angle you see in the box below.

```do
tool measure
measure angle H-N-H expect 100..108 record "Ammonia: H–N–H angle"
after: Ammonia's lone pair takes up more room than a bond, so the angle is
  a little smaller than a perfect tetrahedron (109.5°).
```

## Your results

Click **Copy results** to paste your measurements into your lab report.

```do
results
```

````

That’s the whole format. Anything outside a `do` block is ordinary Markdown, including **bold** , lists, tables, links and images. (Things like `<sub>` and `<sup>` are available, though I’m still thinking about full MathJax / LaTeX formulas.)

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 4, 2026, 10:56pm UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/2 "2026-11-04T22:56:26Z")

</div>

Would it make sense to have these kinds of tutorials:

- Help ▸ Interactive Tutorials or a top-level **Learn** menu?
- How should people load them? Download? “Open Tutorials?” Both? Something else?
  - If download-able, should it be as a “plugin”

- What kinds of question styles should be available?
- What kind of syntax would you want for the `do` blocks?

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 5, 2026, 3:12am UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/3 "2026-11-05T03:12:34Z")

</div>

### Sharing tutorials: packs

Here’s my idea about loading tutorials.. A **pack** is a folder of tutorials for a course or lab, e.g. as a new plugin type.

```plaintext
chem101-labs/
  pack.md title + the order of the tutorials
  01-getting-around.md
  02-vsepr.md
  02-vsepr.de.md optional German translation
  images/lone-pairs.png
  molecules/caffeine.cjson

```

`pack.md` is just a title and a numbered list of links. (Maybe `index.md` instead?)

```markdown
# CHEM 101 Lab Tutorials

University of Pittsburgh, Fall 2027.

1. [Getting around](01-getting-around.md)
2. [VSEPR shapes](02-vsepr.md)

```

**Installing a pack:**

- Copy the folder into Avogadro’s tutorials folder, or use **Install Tutorial Pack…**.
- For a computer lab, IT can install a pack for every user, or point Avogadro at a shared network folder.
- Later, packs should also install from the same **Download Plugins** dialog as plugins.

**Packs are content only.** They can’t run code, so a pack from a colleague is safe to open.

---

<div class="post-metadata">

**Author:** ![Thomas](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/thomas/32/3403_2.png) [@Thomas](https://discuss.avogadro.cc/u/Thomas)\
**Post date:** [November 5, 2026, 10:52pm UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/4 "2026-11-05T22:52:07Z")

</div>

I like the idea, especially if the syntax dialect is set from the beginning (e.g. GitHub flavored Markdown, or CommonMark) for an inclusion as an entry to Avogadro’s help menu as well as a separate documentation (either two.avogadro, or separate instance e.g., with [MkDocs](https://www.mkdocs.org/)).

I’m hesitant about the `do` tagged fenced blocks. For one, the example shared

````auto
```do
new
tool draw
element N
set adjust-hydrogens on
build NH3 | Click once on an empty spot
  if H2O: That's water. Press {key:Undo}, choose Nitrogen (7), and click again.
  if 2 NH3: You've made two ammonia molecules. Press {key:Undo} to undo one.
```

````

can be, dependent on environment/software, be (mis)understood as a code block in a programming language by the typical converters (pandoc, mkdocs, readthedocs).

- For one, they then toggle on a non-proportional font.

- Missing an `ignore` instruction, their stemmers may attempt to provide syntax highlighting where it is not sensible (as above).

- Since `do` language is not yet known, manual intervention were necessary to prevent overly long lines in the source code (adjustable rule MD013 in e.g., in [markdownlint](https://github.com/markdownlint/markdownlint))

- Yet if student actions were plain lists of bullet points (both `-` and `+` are permitted characters), or ordered lists, such reformat could be provided automatically for instance as a pre-commit hook by [mdformat](https://github.com/hukkin/mdformat) e.g.

Detail on `pack.md` shared as preview: In ordered lists, the first ordinal implicitly defines the following ordinals, too. Thus

````auto
```md
1. apples
1. grapes
1. peaches

some text as place holder

4. pens
1. books
1. papers
```

````

yields

1. apples
2. grapes
3. peaches

some text as place holder

1. pens
2. books
3. papers

which is both understood by many Markdown engines (cf. markdownlint rule MD029) and saves much time when adjusting the sequence of lists (of tasks) in Markdown.

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 6, 2026, 3:06am UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/5 "2026-11-06T03:06:00Z")

</div>

> [@Thomas](#):
>
> I like the idea, especially if the syntax dialect is set from the beginning (e.g. GitHub flavored Markdown, or CommonMark)

Yes, I think Markdown is the way to go. The student initially showed me a JSON format for each step.

> [@Thomas](#):
>
> Detail on `pack.md` shared as preview: In ordered lists, the first ordinal implicitly defines the following ordinals, too.

Sure. It’s probably better to do that than numbering the filenames. And I’m leaning more to `index.md` since that’s what we use in the MyST website already.

> [@Thomas](#):
>
> can be, dependent on environment/software, be (mis)understood as a code block in a programming language by the typical converters (pandoc, mkdocs, readthedocs).

I mean, it’s intended to be something of a syntax / scripting system. I’m okay with picking a different name or using bullet points, etc. The block is parsed by Avogadro to provide UI hints and validation forms.

In the example, it creates a new (empty) molecule, highlights the draw tool, then the element, etc.

- **One command per line.** The student does them in order, and the outline moves along.
- **`| text`** sets the label next to the outline. Every command has a sensible default label, so this is optional.
- **Indented `if …:` lines** give hints for common mistakes. They work for:
  - a wrong molecule: `if H2O:`
  - a wrong measurement: `if wrong-vertex:`, `if units:`

- **`after:`** is shown once the step is done.
- **Formulas can be written in any element order.** `H3N` and `NH3` are the same. (This avoids questions about \ce{H2CO3} vs. \ce{CH2O3}, etc.

> **All commands (draft)**
>
> | Command | What the student does |
> | --- | --- |
> | `new` | File ▸ New (done when the window is empty) |
> | `tool draw`, `tool measure`, `tool navigate`, … | Picks that tool |
> | `element N` | Chooses that element in the Draw tool |
> | `bond-order single` (or `auto`, `double`, `triple`) | Chooses that bond order |
> | `set adjust-hydrogens on` | Sets that option |
> | `optimize` | Runs Optimize Geometry |
> | `run insert-smiles` (and other menu items) | Uses that menu item |
> | `build C2H6` | Builds exactly that molecule |
> | `measure distance C-C expect 1.45..1.62` | Measures a bond and types the value |
> | `measure angle H-O-H expect 99..108` | Measures an angle (the middle atom is the corner) and types the value |
> | `look view` | Nothing to check; they click **Next** |
> | `load molecules/caffeine.cjson` | Avogadro opens a starting molecule that comes with the tutorial |
> | `results` | Shows the table of their measurements |
> 
> The `expect` range is what the value should be **after optimizing**. A student who measures a hand-drawn shape is told to optimize first. The answer checks also catch:
> 
> - clicking the atoms in the wrong order
> - typing picometres instead of ångströms

> **Shortcuts and menu names in the text**
>
> Write these in curly braces in the step text. They are filled in from the running app, so they are always right for the student’s computer and language:
> 
> | You write | A Mac user sees | A Windows user sees |
> | --- | --- | --- |
> | `{key:Undo}` | ⌘Z | Ctrl+Z |
> | `{tool:measure}` | **Measure** tool (⌘8) | **Measure** tool (Ctrl+8) |
> | `{menu:optimize}` | **Extensions ▸ Optimize Geometry** (⌥⌘O) | **Extensions ▸ Optimize Geometry** (Ctrl+Alt+O) |
> 
> No more “Mac users: use ⌘ instead of Ctrl.”

I’ve been thinking about math / chemical formulas. A lot of this is okay because we have Unicode and `<sub>` and `<sup>` tags. It might be helpful to some to enable full LaTeX / MathJax and simply generate SVG in the `pack`.

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 6, 2026, 3:34am UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/6 "2026-11-06T03:34:59Z")

</div>

Here’s a low-res walkthrough of the prototype - the tutorial text and commands show up on the right panel.

![avogadro-tutorial](https://discuss.avogadro.cc/uploads/default/original/2X/9/99752eb7fa1d19987436114837f528889c3f1511.gif)

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [November 6, 2026, 8:41am UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/7 "2026-11-06T08:41:05Z")

</div>

I was just thinking, didn’t you want to also add the ability to control Avogadro via a script? If so, you could have this one syntax for both things.

---

<div class="post-metadata">

**Author:** ![rachelwilson](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@rachelwilson](https://discuss.avogadro.cc/u/rachelwilson)\
**Post date:** [November 6, 2026, 12:34pm UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/8 "2026-11-06T12:34:03Z")

</div>

that last point about one syntax for both makes a lot of sense to me, the if hints already read like a tiny scripting language anyway. reusing it would keep things simpler for anyone writing lessons, i think.

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 6, 2026, 12:36pm UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/9 "2026-11-06T12:36:32Z")

</div>

This is kinda the inverse - it’s a set of tasks the _human_ has to do to complete the tutorial / lesson.

And the tutorial mode gives UI hints to help you find the different tools, etc.

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [November 6, 2026, 5:13pm UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/10 "2026-11-06T17:13:38Z")

</div>

Yes, I understand. But the syntax for giving commands to an automated process and giving instructions to a human can be the same, is my point 🙂

---

<div class="post-metadata">

**Author:** ![ghutchis](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/ghutchis/32/456_2.png) [@ghutchis](https://discuss.avogadro.cc/u/ghutchis)\
**Post date:** [November 6, 2026, 5:53pm UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/11 "2026-11-06T17:53:37Z")

</div>

Hmm.

I don’t know that I want to commit to a syntax for scripting the UI just yet (particularly since many people ask about Python scripting and I think this feature calls for a different syntax)

At the very least, it sounds like there’s interest in this and a few things are clear:

- Markdown + some form of “scripting syntax” is a preferred format
- Having “packs” with a list of steps / lessons is a good idea, including possible images and files (e.g., pre-computed orbitals, spectra, etc.)

Any feedback as far as:

- **Menu location**? (I’d probably suggest “Help ▸ Interactive Tutorials” since I’d eventually like to allow download of the website documentation for offline use
- **What styles of questions**?

---

<div class="post-metadata">

**Author:** ![matterhorn103](https://discuss.avogadro.cc/user_avatar/discuss.avogadro.cc/matterhorn103/32/1751_2.png) [@matterhorn103](https://discuss.avogadro.cc/u/matterhorn103)\
**Post date:** [November 6, 2026, 6:19pm UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/12 "2026-11-06T18:19:56Z")

</div>

> [@ghutchis](#):
>
> At the very least, it sounds like there’s interest in this

For sure, that demo looks really cool and I imagine it being a great tool for workshops etc. in undergrad courses!

---

<div class="post-metadata">

**Author:** ![rachelwilson](https://discuss.avogadro.cc/letter_avatar_proxy/v4/letter/r/8edcca/32.png) [@rachelwilson](https://discuss.avogadro.cc/u/rachelwilson)\
**Post date:** [November 13, 2026, 11:59am UTC](https://discuss.avogadro.cc/t/feedback-wanted-tutorial-lesson-feature/7577/13 "2026-11-13T11:59:22Z")

</div>

help \> interactive tutorials feels right to me, since that’s where i’d look first for a guided tour. for questions, i’d lean toward ones that ask you to do a step and check the result, rather than recall, since the demo is already walking you through where things are.
