Skip to content

Commit ac97191

Browse files
docs: Re-execute all notebooks, add execute script
- Re-run all tutorials against PostgreSQL with TLS disabled - Add scripts/execute-notebooks.sh for reproducible execution Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9f0615a commit ac97191

22 files changed

+2447
-2373
lines changed

scripts/execute-notebooks.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
# Execute all tutorial notebooks with outputs saved
3+
# Uses PostgreSQL backend with TLS disabled to avoid SSL warnings in output
4+
5+
set -e
6+
7+
cd "$(dirname "$0")/.."
8+
9+
# Database connection settings for PostgreSQL
10+
export DJ_HOST=localhost
11+
export DJ_PORT=5432
12+
export DJ_USER=postgres
13+
export DJ_PASS=tutorial
14+
export DJ_BACKEND=postgresql
15+
export DJ_USE_TLS=false
16+
17+
echo "Executing tutorials with PostgreSQL backend..."
18+
echo " Host: $DJ_HOST:$DJ_PORT"
19+
echo " User: $DJ_USER"
20+
echo " Backend: $DJ_BACKEND"
21+
echo " TLS: disabled"
22+
echo ""
23+
24+
# Execute all tutorial notebooks
25+
echo "Executing basics tutorials..."
26+
jupyter nbconvert --to notebook --execute --inplace src/tutorials/basics/*.ipynb
27+
28+
echo "Executing advanced tutorials..."
29+
jupyter nbconvert --to notebook --execute --inplace src/tutorials/advanced/*.ipynb
30+
31+
echo "Executing domain tutorials..."
32+
for dir in src/tutorials/domain/*/; do
33+
echo " Executing $dir..."
34+
jupyter nbconvert --to notebook --execute --inplace "$dir"*.ipynb
35+
done
36+
37+
echo "Executing example tutorials..."
38+
jupyter nbconvert --to notebook --execute --inplace src/tutorials/examples/*.ipynb
39+
40+
echo "Executing how-to notebooks..."
41+
jupyter nbconvert --to notebook --execute --inplace src/how-to/*.ipynb
42+
43+
echo ""
44+
echo "All notebooks executed successfully!"

src/how-to/model-relationships.ipynb

Lines changed: 141 additions & 141 deletions
Large diffs are not rendered by default.

src/how-to/read-diagrams.ipynb

Lines changed: 119 additions & 119 deletions
Large diffs are not rendered by default.

src/tutorials/advanced/custom-codecs.ipynb

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@
2020
"id": "cell-1",
2121
"metadata": {
2222
"execution": {
23-
"iopub.execute_input": "2026-01-20T22:19:34.175933Z",
24-
"iopub.status.busy": "2026-01-20T22:19:34.175711Z",
25-
"iopub.status.idle": "2026-01-20T22:19:34.920041Z",
26-
"shell.execute_reply": "2026-01-20T22:19:34.919708Z"
23+
"iopub.execute_input": "2026-01-23T05:08:53.523460Z",
24+
"iopub.status.busy": "2026-01-23T05:08:53.523358Z",
25+
"iopub.status.idle": "2026-01-23T05:08:54.450994Z",
26+
"shell.execute_reply": "2026-01-23T05:08:54.450645Z"
2727
}
2828
},
2929
"outputs": [
3030
{
3131
"name": "stderr",
3232
"output_type": "stream",
3333
"text": [
34-
"[2026-01-20 16:19:34,913][INFO]: DataJoint 2.1.0a2 connected to postgres@127.0.0.1:5432\n"
34+
"[2026-01-22 23:08:54,443][INFO]: DataJoint 2.1.0a5 connected to postgres@localhost:5432\n"
3535
]
3636
}
3737
],
@@ -56,10 +56,10 @@
5656
"id": "cell-3",
5757
"metadata": {
5858
"execution": {
59-
"iopub.execute_input": "2026-01-20T22:19:34.921807Z",
60-
"iopub.status.busy": "2026-01-20T22:19:34.921625Z",
61-
"iopub.status.idle": "2026-01-20T22:19:34.924444Z",
62-
"shell.execute_reply": "2026-01-20T22:19:34.924176Z"
59+
"iopub.execute_input": "2026-01-23T05:08:54.452930Z",
60+
"iopub.status.busy": "2026-01-23T05:08:54.452699Z",
61+
"iopub.status.idle": "2026-01-23T05:08:54.455491Z",
62+
"shell.execute_reply": "2026-01-23T05:08:54.455248Z"
6363
}
6464
},
6565
"outputs": [],
@@ -94,10 +94,10 @@
9494
"id": "cell-4",
9595
"metadata": {
9696
"execution": {
97-
"iopub.execute_input": "2026-01-20T22:19:34.925782Z",
98-
"iopub.status.busy": "2026-01-20T22:19:34.925669Z",
99-
"iopub.status.idle": "2026-01-20T22:19:34.942312Z",
100-
"shell.execute_reply": "2026-01-20T22:19:34.941985Z"
97+
"iopub.execute_input": "2026-01-23T05:08:54.456757Z",
98+
"iopub.status.busy": "2026-01-23T05:08:54.456647Z",
99+
"iopub.status.idle": "2026-01-23T05:08:54.476357Z",
100+
"shell.execute_reply": "2026-01-23T05:08:54.476057Z"
101101
}
102102
},
103103
"outputs": [],
@@ -117,10 +117,10 @@
117117
"id": "cell-5",
118118
"metadata": {
119119
"execution": {
120-
"iopub.execute_input": "2026-01-20T22:19:34.943784Z",
121-
"iopub.status.busy": "2026-01-20T22:19:34.943662Z",
122-
"iopub.status.idle": "2026-01-20T22:19:34.955275Z",
123-
"shell.execute_reply": "2026-01-20T22:19:34.954978Z"
120+
"iopub.execute_input": "2026-01-23T05:08:54.478343Z",
121+
"iopub.status.busy": "2026-01-23T05:08:54.478193Z",
122+
"iopub.status.idle": "2026-01-23T05:08:54.490438Z",
123+
"shell.execute_reply": "2026-01-23T05:08:54.490133Z"
124124
}
125125
},
126126
"outputs": [
@@ -184,10 +184,10 @@
184184
"id": "cell-8",
185185
"metadata": {
186186
"execution": {
187-
"iopub.execute_input": "2026-01-20T22:19:34.956838Z",
188-
"iopub.status.busy": "2026-01-20T22:19:34.956729Z",
189-
"iopub.status.idle": "2026-01-20T22:19:34.959534Z",
190-
"shell.execute_reply": "2026-01-20T22:19:34.959308Z"
187+
"iopub.execute_input": "2026-01-23T05:08:54.492077Z",
188+
"iopub.status.busy": "2026-01-23T05:08:54.491947Z",
189+
"iopub.status.idle": "2026-01-23T05:08:54.494724Z",
190+
"shell.execute_reply": "2026-01-23T05:08:54.494508Z"
191191
}
192192
},
193193
"outputs": [],
@@ -219,10 +219,10 @@
219219
"id": "cell-9",
220220
"metadata": {
221221
"execution": {
222-
"iopub.execute_input": "2026-01-20T22:19:34.960709Z",
223-
"iopub.status.busy": "2026-01-20T22:19:34.960608Z",
224-
"iopub.status.idle": "2026-01-20T22:19:34.974939Z",
225-
"shell.execute_reply": "2026-01-20T22:19:34.974668Z"
222+
"iopub.execute_input": "2026-01-23T05:08:54.496162Z",
223+
"iopub.status.busy": "2026-01-23T05:08:54.496035Z",
224+
"iopub.status.idle": "2026-01-23T05:08:54.512198Z",
225+
"shell.execute_reply": "2026-01-23T05:08:54.511935Z"
226226
}
227227
},
228228
"outputs": [
@@ -256,10 +256,10 @@
256256
"id": "cell-10",
257257
"metadata": {
258258
"execution": {
259-
"iopub.execute_input": "2026-01-20T22:19:34.976356Z",
260-
"iopub.status.busy": "2026-01-20T22:19:34.976229Z",
261-
"iopub.status.idle": "2026-01-20T22:19:34.979284Z",
262-
"shell.execute_reply": "2026-01-20T22:19:34.979063Z"
259+
"iopub.execute_input": "2026-01-23T05:08:54.513489Z",
260+
"iopub.status.busy": "2026-01-23T05:08:54.513360Z",
261+
"iopub.status.idle": "2026-01-23T05:08:54.516812Z",
262+
"shell.execute_reply": "2026-01-23T05:08:54.516563Z"
263263
}
264264
},
265265
"outputs": [],

0 commit comments

Comments
 (0)