In what platform do I run these classes

How to I run the code examples in these classes?

I am following the “Multi AI Agent Systems with crewAI” class. In the class, they give code examples but almost nothing works for me. If I go to Colabs and enter the code, I run into problems soon as:

pip install crewai
from crewai import Agent, Task, Crew
import os
from utils import get_openai_api_key, pretty_print_result

ModuleNotFoundError Traceback (most recent call last)
in <cell line: 2>()
1 import os
----> 2 from utils import get_openai_api_key, pretty_print_result

The class talked about “on the Platform”. Even here in the FAQ it talks about the “Platform”. Which to me implies a system inside of DeelLearning.AI instead of Colabs. But no where can I find what “the Platform” is or how to access it.

I apologize as this is the most basic question ever… but how do I run code or where do I setup a Platform?

Rob

Welcome to the community @zzz3668 .

It sounds like you’re having some trouble running the code examples, and I’m happy to help clarify.

First, it looks like you posted in the wrong category, but no worries—I’ll move it to the correct section for the CrewAI short course. Just a heads up, you can always use the edit (pencil) icon near the title to do this.

Regarding your question:

Running Code in the CrewAI Course

The course you’re following—“Multi AI Agent Systems with CrewAI”—is best experienced using the platform provided by DeepLearning.AI. I see that you’ve mentioned using Google Colab, which isn’t fully set up for this particular environment. Instead, you should use the Platform that’s included with the course.

What is “the Platform” and How Do You Access It?

The platform they mention is an integrated learning environment that comes with the course materials. It has all the resources, code, and data pre-configured so you can seamlessly follow along with the lessons. You should see it here (as shown in the screenshot below), which is directly accessible from your course page:

How to Run the Code on the Platform

When you’re watching the videos, you should notice that to the left of the video player, there’s a Jupyter notebook. In this notebook, you can run the code provided in the lessons by pressing Shift + Enter to execute each cell. This setup ensures all environment variables, including the API_keys and necessary imports, are already set for you.

Running the Code Outside the Platform

If you wish to run the code outside of the course environment—like in Google Colab—you’ll need to manually set up the environment. That means:

  • Downloading all the course-associated files.
  • Installing all required libraries (pip install crewai, etc.).
  • Setting up all environment variables, including API_keys.

This requires a bit of extra effort, and errors like the ModuleNotFoundError you’re seeing are common when dependencies or environment settings aren’t configured correctly.

If you’re just starting, I recommend sticking to the integrated platform, as it will save you a lot of time and headaches.

Let me know if this clears things up or if you have more questions!