Skip to content

Commit db8009d

Browse files
authored
Merge pull request #17 from mongodb-developer/feature/conda-jupyter-image
Feature/conda jupyter image
2 parents 29dcc19 + 374ebba commit db8009d

File tree

6 files changed

+40
-10
lines changed

6 files changed

+40
-10
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Jupyter Notebook with MongoDB",
2+
"name": "GenAI Jupyter Notebooks with MongoDB",
33
"dockerComposeFile": "docker-compose.yml",
44
"service": "lab-runner",
55
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
@@ -14,8 +14,7 @@
1414
"SERVERLESS_URL": "https://vtqjvgchmwcjwsrela2oyhlegu0hwqnw.lambda-url.us-west-2.on.aws/",
1515
"MONGODB_URI": "mongodb://admin:mongodb@mongodb:27017/"
1616
},
17-
"updateContentCommand": "python3 -m pip install -r requirements.txt",
18-
"postCreateCommand": "",
17+
"postCreateCommand": "pip install -r requirements.txt",
1918
"customizations": {
2019
"codespaces": {
2120
"openFiles": []

.devcontainer/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
lab-runner:
3-
image: mcr.microsoft.com/devcontainers/universal:2
3+
image: jupyter/base-notebook:latest
44
volumes:
55
- ../..:/workspaces:cached
66
depends_on:
@@ -14,7 +14,7 @@ services:
1414
network_mode: service:mongodb
1515

1616
mongodb:
17-
image: mongodb/mongodb-atlas-local:latest
17+
image: mongodb/mongodb-atlas-local:8.0.3-20250506T093411Z
1818
restart: unless-stopped
1919
volumes:
2020
- mongodb_data:/data/db

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ share/python-wheels/
2525
.installed.cfg
2626
*.egg
2727
MANIFEST
28+
.idea
2829

2930
# PyInstaller
3031
# Usually these files are written by a python script from a template

notebooks/ai-agents-lab.ipynb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,8 +993,22 @@
993993
}
994994
],
995995
"metadata": {
996+
"kernelspec": {
997+
"display_name": "base",
998+
"language": "python",
999+
"name": "python3"
1000+
},
9961001
"language_info": {
997-
"name": "python"
1002+
"codemirror_mode": {
1003+
"name": "ipython",
1004+
"version": 3
1005+
},
1006+
"file_extension": ".py",
1007+
"mimetype": "text/x-python",
1008+
"name": "python",
1009+
"nbconvert_exporter": "python",
1010+
"pygments_lexer": "ipython3",
1011+
"version": "3.11.6"
9981012
},
9991013
"widgets": {
10001014
"application/vnd.jupyter.widget-state+json": {

notebooks/ai-rag-lab.ipynb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,13 +1076,21 @@
10761076
],
10771077
"metadata": {
10781078
"kernelspec": {
1079-
"display_name": "Python 3",
1079+
"display_name": "base",
10801080
"language": "python",
10811081
"name": "python3"
10821082
},
10831083
"language_info": {
1084+
"codemirror_mode": {
1085+
"name": "ipython",
1086+
"version": 3
1087+
},
1088+
"file_extension": ".py",
1089+
"mimetype": "text/x-python",
10841090
"name": "python",
1085-
"version": "3.12.1"
1091+
"nbconvert_exporter": "python",
1092+
"pygments_lexer": "ipython3",
1093+
"version": "3.11.6"
10861094
},
10871095
"widgets": {
10881096
"application/vnd.jupyter.widget-state+json": {

notebooks/vector-search-lab.ipynb

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -946,13 +946,21 @@
946946
],
947947
"metadata": {
948948
"kernelspec": {
949-
"display_name": "Python 3",
949+
"display_name": "base",
950950
"language": "python",
951951
"name": "python3"
952952
},
953953
"language_info": {
954+
"codemirror_mode": {
955+
"name": "ipython",
956+
"version": 3
957+
},
958+
"file_extension": ".py",
959+
"mimetype": "text/x-python",
954960
"name": "python",
955-
"version": "3.12.1"
961+
"nbconvert_exporter": "python",
962+
"pygments_lexer": "ipython3",
963+
"version": "3.11.6"
956964
},
957965
"widgets": {
958966
"application/vnd.jupyter.widget-state+json": {

0 commit comments

Comments
 (0)