Skip to content

Commit 96e8117

Browse files
Merge pull request #28 from ttngu207/master
simplify notebook and added vscode extensions
2 parents 1dc2d2d + 1abf1fc commit 96e8117

File tree

2 files changed

+5
-36
lines changed

2 files changed

+5
-36
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
"customizations": {
2323
"vscode": {
2424
"extensions": [
25-
"ms-python.python"
25+
26+
2627
]
2728
}
2829
}
29-
}
30+
}

short_tutorials/datajoint_in_30mins.ipynb

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,44 +11,13 @@
1111
"import numpy as np"
1212
]
1313
},
14-
{
15-
"attachments": {},
16-
"cell_type": "markdown",
17-
"id": "c3ba552d-1894-41ea-ad4e-d96c828e871d",
18-
"metadata": {},
19-
"source": [
20-
"# Connect to the database"
21-
]
22-
},
23-
{
24-
"cell_type": "code",
25-
"execution_count": 13,
26-
"id": "284addad-c0aa-4ba5-a70d-8a238d05e6e9",
27-
"metadata": {},
28-
"outputs": [],
29-
"source": [
30-
"dj.config['database.host'] = '*************'\n",
31-
"dj.config['database.user'] = '*************'\n",
32-
"dj.config['database.password'] = '*************'"
33-
]
34-
},
35-
{
36-
"cell_type": "code",
37-
"execution_count": null,
38-
"id": "35ea1431-0762-48ec-8ed7-0744bd7d4fe6",
39-
"metadata": {},
40-
"outputs": [],
41-
"source": [
42-
"dj.conn()"
43-
]
44-
},
4514
{
4615
"attachments": {},
4716
"cell_type": "markdown",
4817
"id": "e086433f-70ec-4f5d-ac4b-0fa889b53e60",
4918
"metadata": {},
5019
"source": [
51-
"# Define and create table"
20+
"# Define tables"
5221
]
5322
},
5423
{
@@ -58,8 +27,7 @@
5827
"metadata": {},
5928
"outputs": [],
6029
"source": [
61-
"schema_name = 'your_schema_name'\n",
62-
"schema = dj.Schema(schema_name)"
30+
"schema = dj.Schema(\"experiment\")"
6331
]
6432
},
6533
{

0 commit comments

Comments
 (0)