Skip to main content

๐Ÿ‘ Setup dev environment

๐Ÿฆน If you are doing this lab as part of a MongoDB GenAI Developer Day, you can continue in the environment you previously created.

Navigate to the Instruqt lab using this link. Click Continue to continue in the sandbox you created previously.

Resume sandbox

In the Explorer menu, navigate to genai-devday-notebooks > notebooks > ai-agents-lab.ipynb This is the Jupyter Notebook you will be using throughout this lab.

Navigate to the notebook
tip

Notice that this documentation website is also linked in the Agents Lab Instructions tab of your Instruqt sandbox. Feel free to access the documentation from there instead for the rest of the lab.

tip

In this lab, we will be using Jupyter Notebooks, which is an interactive Python environment. If you are new to Jupyter Notebooks, use this guide to familiarize yourself with the environment.

Instruqt is a lab platform that provides cloud-based sandboxes which come pre-configured with all the tools you need to run this lab.

Navigate to the Instruqt lab using this link. Fill out the form that appears and click Submit and access.

Submit Instruqt form

Click Start to launch the lab environment.

Start Instruqt sandbox

You should see a screen with a purple progress bar indicating that Instruqt is preparing a sandbox with all the required libraries for this lab and a MongoDB cluster.

Once this is done, you should see a Start button at the bottom right of the screen. Click this to enter the lab.

Start Instruqt lab

Connect to the MongoDB clusterโ€‹

Let's first connect to the MongoDB cluster that was created for you. This will allow you to view data we import into the cluster later in the lab, directly from the VSCode IDE.

To do this, click the leaf icon in the left navigation bar of the IDE. This is MongoDB's VSCode extension.

Click leaf icon

Under Connections, click the Local MongoDB Atlas connection. This should automatically establish a connection to the local MongoDB cluster running on port 27017.

Connect to the cluster

If the connection was successful, you should see a green leaf and a "connected" message appear around the Local MongoDB Atlas connection.

You will also see the default databases in the cluster appear under Connections. Any additional databases we create during the lab will also appear here.

Connection successful

Jupyter Notebook setupโ€‹

You will be filling code in a Jupyter Notebook during this lab, so let's get set up with that next!

Within the sandbox, click on the files icon in the left navigation bar of the IDE. In the Explorer menu, navigate to genai-devday-notebooks > notebooks > ai-agents-lab.ipynb to open the Jupyter Notebook for this lab.

Navigate to the notebook

Next, select the Python interpreter by clicking Select Kernel at the top right of the IDE.

Select kernel

In the modal that appears, click Python environments... and select the interpreter that is marked as Recommended or Global Env.

Select Python Environments
Select recommended interpreter

That's it! You're ready for the lab!

tip

Notice that this documentation website is also linked in the Agents Lab Instructions tab of your Instruqt sandbox. Feel free to access the documentation from there instead for the rest of the lab.