Brief abstract/introduction/motivation. State what the chapter is about in 1-2 paragraphs. Then, have an introduction video:


Section 1


Section 2


Section 3


If you want to introduce code, it is helpful to state the most important functions, as in:

  • random.randrange(start, end) - return a random number [start, end]
  • range(start, end) - create a list with integers from start to end. Typically used in iterations.
  • for elem in list: body executes body in a loop with elem taking each value from list.
  • for i in range(start, end): body executes body in a loop with i from start to end - 1.
  • chr(n) - return a character with ASCII code n
In [4]:
# Even more code

Section 4


Lessons Learned

  • Lesson one
  • Lesson two
  • Lesson three


Cite relevant works in the literature and put them into context, as in:

The idea of ensuring that each expansion in the grammar is used at least once goes back to Burkhardt \cite{Burkhardt1967}, to be later rediscovered by Paul Purdom \cite{Purdom1972}.


Close the chapter with a few exercises such that people have things to do. To make the solutions hidden (to be revealed by the user), have them start with


Your solution can then extend up to the next title (i.e., any markdown cell starting with #).

Running make metadata will automatically add metadata to the cells such that the cells will be hidden by default, and can be uncovered by the user. The button will be introduced above the solution.

Exercise 1: Title

Text of the exercise

In [5]:
# Some code that is part of the exercise

Some more text for the exercise

Exercise 2: Title

Text of the exercise