Start Here: How to Get Into “Building Active Inference in Python” (Free to Explore)

If you’ve been curious about active inference but weren’t sure where to begin, this post is for you. It shows you what’s in our hands-on lab course, Building Active Inference in Python, and walks you, screen by screen, through getting in. Many of the lessons are free, and the code is always free (on GitHub).

In this post: what’s in the course · how to get in free · where the code lives · how to opt in.”


What’s In the Lab Course

Building Active Inference in Python is a hands-on course in which you build an active inference agent from the ground up, one small piece of code at a time. We don’t start from a ready-made library. Every line connects to a piece of the mathematics, so you understand what the agent is doing and why.

Figure 1. Building Active Inference in Python: the labs in Modules 1 and 2. Lab 2.3 (Variational Free Energy) is the latest; Lab 2.4 and Module 3 (Inference) are coming next.

Where the course stands today:

  • Module 1: Building the World. Six labs (1.1–1.6): setting up, the world as a graph, and the agent’s core building blocks (the D, A and B matrices), brought together in the generative model’s forward pass.
  • Module 2: Bayesian Thinking and Free Energy. Labs 2.1–2.3 are ready: the Bayesian update, predicting and updating over many steps, and the variational free energy. Lab 2.4 is in progress.
  • Module 3: Inference. Forthcoming.

Three Ways In, Starting with Free Content

  1. The code is always free. Every lab’s Python code is on GitHub (link below).
  2. Free Preview lessons. Sign up as a free Learner on our course site, and the lessons marked “Free Preview” are open to you, including tutorial PDFs that explain what the code is doing.
  3. The full course. For everything, including all the tutorial PDFs and exercises, the full course is $1,000.

And if you’d like company along the way, the Active Inference Institute runs free study groups, including one working through Sanjeev Namjoshi’s Fundamentals of Active Inference. They’re a wonderful way to learn alongside others.

Figure 2. It’s easy to sign up for the Active Inference Institute Textbook Study Group – during 2026, there have been at least two (earlier three) weekly meetings covering the same material each week.

All the Active Inference Institute Study Group gatherings are recorded and are available as YouTubes on the Active Inference Institute YouTube channel. – this is the link to the first Fundamentals Study Group meeting in May, 2026.

Figure 3. Example of one of the Active Inference Institute Fundamentals Study Group YouTubes.

How to Get In: Step by Step

Step 1. Go to the Themesis course site and click “All Products.” The site is themesis.thinkific.com.

Figure 4. Start at the Themesis course site, themesis.thinkific.com, and click “All Products.”

Step 2. Select “Building Active Inference in Python.”

Figure 5. Choose the lab course.

Step 3. To explore the content, click “Free Preview.”

Figure 6. “Free Preview” lets you look inside at no cost.

Step 4. Enroll as a Learner. It’s free. Sign up with your email, or with Apple, Facebook, Google or LinkedIn. The total shows $0.00.

Figure 7. Sign up to enroll as a free Learner.

Step 5. Once you’re in, click “Start Course.” Next time, you’ll find the course under “Continue learning.” (You’ll see your own name at the top.)

Figure 8. New learners click “Start Course”; returning learners use “Continue learning.”

Step 6. Open the Free Preview lessons. Lessons marked “Free Preview” are available to you. Open a PDF lesson to read it; the viewer’s download icon lets you save a copy. Each lab lesson also includes its GitHub code link.

Figure 9. Open a Free Preview lesson. Each lab lesson links to its code on GitHub.

Getting the Code

All the lab code lives in one public GitHub repository, free for anyone to use:
github.com/Themesis1/Themesis-BuildingActiveInf

Figure 10. The lab course code on GitHub. Each file is named by its lab number (L1-1, L1-2 and so on), so you can match it to its lesson.

A Suggestion for How to Learn

The approach I recommend is code + Claude + community.

Feel free to check out this short (3 minute) YouTube on how this approach has worked for me.

Work through the code in small pieces. Use an AI assistant such as Claude as an always-available tutor: our tutorial PDFs are designed so you can upload them and ask questions. And find others to learn with, through the Institute’s study groups or our own Themesis community.


Questions?

If you get stuck anywhere along the way, or just want to tell me what you’re working on, reply or write to me. I’d love to hear from you.

Use the email on our Connect page.

Figure 11. Connect with us via email if you have questions

Warmly,
Alianna


PS – Want to Know When the Next Lab is Released?

Become a part of the Themesis community: Opt-in (use the form on our “About” page).

Figure 12. Join the Themesis community – use the Opt-In form on our “About” page.

Do the Opt-In – and confirm that you’ve received our email – and move our emails to your preferred Inbox!

Figure 13. Opt-in and check your email!

You’ll get emails letting you know when there are new developments – including your next “Free Preview” opportunity!

Leave a comment

Your email address will not be published. Required fields are marked *

Share via
Copy link
Powered by Social Snap