Skip to main content

๐Ÿ‘ Setup dev environment

tip

Our AI labs use Jupyter Notebooks, which is an interactive Python environment. If you are new to Jupyter Notebooks, use this guide to familiarize yourself with the environment.

You have a few different options to run our AI labs. Our preferred platform is Instruqt.

If for some reason, you are unable to access the labs through Instruqt, try GitHub Codespaces. If neither of these work, or if you really, really, really want a local installation, only then run the labs locally.

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

Use the instructor-provided link to navigate to the right Instruqt lab. 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โ€‹

The sandbox is pre-configured with a local MongoDB cluster. Let's connect to it. 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 appear next to the Local MongoDB Atlas connection.

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

Connection successful

Jupyter Notebook setupโ€‹

Based on the lab you're in, the right lab notebook will automatically open up in the Code Editor upon startup.

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!