Lemma
Open source note-taking for Linux
October 26, 2026

Literate Programming

Last month we added a new code paragraph type. Now you can execute these code passages directly inside Lemma (as long as it's Python). Just add some code and press Ctrl+Return. You can also press the ▶ button in the toolbar if you prefer. Lemma then performs the computation and adds the result just below your code passage.

Computational notebooks like Jupyter are a popular tool in many displines like statistics, data science and computer algebra. This new feature allows you to work in this style in Lemma.

Another use case is Literate Programming. With this programming paradigm you describe the program in a natural language while writing it. The code then sits right next to its explaination. Many text books and tutorials are written like this.

Now you can describe your programs with all the rich text editing and multimedia functions that Lemma provides.