From 681e548fac126f70714f445d6101281d61df1938 Mon Sep 17 00:00:00 2001 From: Dan Allan Date: Wed, 14 May 2025 10:46:07 -0700 Subject: [PATCH] Add an example of exercises. --- tutorials/executable/basics.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/tutorials/executable/basics.md b/tutorials/executable/basics.md index 3376ed7..1a738a0 100644 --- a/tutorials/executable/basics.md +++ b/tutorials/executable/basics.md @@ -4,7 +4,7 @@ jupytext: extension: .md format_name: myst format_version: 0.13 - jupytext_version: 1.16.4 + jupytext_version: 1.17.1 kernelspec: display_name: Python 3 (ipykernel) language: python @@ -34,3 +34,22 @@ This cell has an expected error: 1 / 0 ``` + +## Exercises + +Add one plus one. + +```{code-cell} ipython3 +# Write your solution here. +``` + +```{code-cell} ipython3 +--- +tags: [hide-cell] +jupyter: + source_hidden: true +--- +# Expand to reveal solution. + +1 + 1 +```