You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
29
+
30
+
Once this is done, you should see a Start button at the bottom right of the screen. Click this to enter the lab.
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.
37
+
38
+
To do this, click the leaf icon in the left navigation bar of the IDE. This is MongoDB's VSCode extension.
Under **Connections**, click the _Local MongoDB Atlas_ connection. This should automatically establish a connection to the local MongoDB cluster running on port 27017.
43
+
44
+
<Screenshoturl="https://play.instruqt.com"src="img/screenshots/20-dev-env/2-dev-env-setup/instruqt/5-connect-cluster.png"alt="Connect to the cluster" />
45
+
46
+
If the connection was successful, you should see a green leaf and a "connected" message appear around the _Local MongoDB Atlas_ connection.
47
+
48
+
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.
You will be filling code in a Jupyter Notebook during this lab, so let's get set up with that next!
55
+
56
+
Within the codespace, click on the files icon in the left navigation bar of the IDE. In the Explorer menu, navigate to `genai-devday-notebooks` > `notebooks` > `vector-search-lab.ipynb` to open the Jupyter Notebook for this lab.
57
+
58
+
<Screenshoturl="https://play.instruqt.com"src="img/screenshots/20-dev-env/2-dev-env-setup/instruqt/7-nav-notebook.png"alt="Navigate to the notebook" />
59
+
60
+
Next, select the Python interpreter by clicking **Select Kernel** at the top right of the IDE.
A codespace, much like Instruqt, is a cloud-hosted development environment from GitHub, that comes pre-configured with all the tools you need to run this lab.
77
+
A codespace is a cloud-hosted development environment from GitHub, that comes pre-configured with all the tools you need to run this lab.
25
78
26
79
Navigate to [this](https://github.com/codespaces/new/mongodb-developer/genai-devday-notebooks?quickstart=1) link. You will be prompted to sign into GitHub if you haven't already. Once signed in, click the **Create new codespace** button to create a new codespace.
27
80
28
-
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/2-dev-env-setup/1-create-codespace.png"alt="Start a codespace" />
81
+
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/2-dev-env-setup/codespaces/1-create-codespace.png"alt="Start a codespace" />
29
82
30
83
Let it run for a few seconds as it prepares a Docker container with all the required libraries and a MongoDB cluster.
31
84
32
85
### Connect to the MongoDB cluster
33
86
34
-
Later in the lab, we will import data into the MongoDB cluster that you can view directly from the VSCode IDE. But first, you will need to connect to the cluster.
87
+
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.
35
88
36
-
To do this, click the leaf icon in the left navigation bar of the IDE.
89
+
To do this, click the leaf icon in the left navigation bar of the IDE. This is MongoDB's VSCode extension.
Under **Connections**, click the _mongodb:27017_ connection. This should automatically establish a connection to the local MongoDB cluster running on port 27017.
41
94
42
-
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/2-dev-env-setup/3-connect-cluster.png"alt="Connect to the cluster" />
95
+
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/2-dev-env-setup/codespaces/3-connect-cluster.png"alt="Connect to the cluster" />
43
96
44
97
If the connection was successful, you should see the message **Connected to: mongodb:27017** with a green indicator.
45
98
46
99
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.
You will be filling code in a Jupyter Notebook during this lab, so let's get set up with that next!
53
106
54
107
Within the codespace, click on the files icon in the left navigation bar of the IDE. In the Explorer menu, under `notebooks`, click on the file named `vector-search-lab.ipynb` to open the Jupyter Notebook for this lab.
55
108
56
-
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/2-dev-env-setup/5-nav-notebook.png"alt="Navigate to the notebook" />
109
+
<Screenshoturl="https://github.com/codespaces"src="img/screenshots/20-dev-env/2-dev-env-setup/codespaces/5-nav-notebook.png"alt="Navigate to the notebook" />
57
110
58
111
Next, select the Python interpreter by clicking **Select Kernel** at the top right of the IDE.
0 commit comments