Skip to content

Commit c8a976b

Browse files
committed
Update example notebooks
1 parent dab8050 commit c8a976b

2 files changed

Lines changed: 76 additions & 64 deletions

File tree

examples/cells.ipynb

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

examples/cthead.ipynb

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
"id": "94b5ef80",
1717
"metadata": {
1818
"execution": {
19-
"iopub.execute_input": "2025-05-06T13:05:22.960040Z",
20-
"iopub.status.busy": "2025-05-06T13:05:22.959940Z",
21-
"iopub.status.idle": "2025-05-06T13:05:23.372612Z",
22-
"shell.execute_reply": "2025-05-06T13:05:23.372204Z"
19+
"iopub.execute_input": "2025-05-06T13:25:47.189228Z",
20+
"iopub.status.busy": "2025-05-06T13:25:47.189129Z",
21+
"iopub.status.idle": "2025-05-06T13:25:47.602866Z",
22+
"shell.execute_reply": "2025-05-06T13:25:47.602362Z"
2323
},
2424
"vscode": {
2525
"languageId": "plaintext"
@@ -51,10 +51,10 @@
5151
"id": "1ee080d3",
5252
"metadata": {
5353
"execution": {
54-
"iopub.execute_input": "2025-05-06T13:05:23.374408Z",
55-
"iopub.status.busy": "2025-05-06T13:05:23.374240Z",
56-
"iopub.status.idle": "2025-05-06T13:05:23.498833Z",
57-
"shell.execute_reply": "2025-05-06T13:05:23.498455Z"
54+
"iopub.execute_input": "2025-05-06T13:25:47.604220Z",
55+
"iopub.status.busy": "2025-05-06T13:25:47.604051Z",
56+
"iopub.status.idle": "2025-05-06T13:25:47.730606Z",
57+
"shell.execute_reply": "2025-05-06T13:25:47.730148Z"
5858
},
5959
"vscode": {
6060
"languageId": "plaintext"
@@ -112,10 +112,10 @@
112112
"id": "7af5a922",
113113
"metadata": {
114114
"execution": {
115-
"iopub.execute_input": "2025-05-06T13:05:23.500458Z",
116-
"iopub.status.busy": "2025-05-06T13:05:23.500274Z",
117-
"iopub.status.idle": "2025-05-06T13:05:24.447057Z",
118-
"shell.execute_reply": "2025-05-06T13:05:24.446708Z"
115+
"iopub.execute_input": "2025-05-06T13:25:47.731665Z",
116+
"iopub.status.busy": "2025-05-06T13:25:47.731561Z",
117+
"iopub.status.idle": "2025-05-06T13:25:48.684375Z",
118+
"shell.execute_reply": "2025-05-06T13:25:48.683911Z"
119119
},
120120
"vscode": {
121121
"languageId": "plaintext"
@@ -180,10 +180,10 @@
180180
"id": "493f1153",
181181
"metadata": {
182182
"execution": {
183-
"iopub.execute_input": "2025-05-06T13:05:24.448786Z",
184-
"iopub.status.busy": "2025-05-06T13:05:24.448581Z",
185-
"iopub.status.idle": "2025-05-06T13:05:24.912468Z",
186-
"shell.execute_reply": "2025-05-06T13:05:24.911852Z"
183+
"iopub.execute_input": "2025-05-06T13:25:48.685887Z",
184+
"iopub.status.busy": "2025-05-06T13:25:48.685780Z",
185+
"iopub.status.idle": "2025-05-06T13:25:49.177131Z",
186+
"shell.execute_reply": "2025-05-06T13:25:49.176690Z"
187187
},
188188
"vscode": {
189189
"languageId": "plaintext"
@@ -234,10 +234,10 @@
234234
"id": "6e7f236c",
235235
"metadata": {
236236
"execution": {
237-
"iopub.execute_input": "2025-05-06T13:05:24.914665Z",
238-
"iopub.status.busy": "2025-05-06T13:05:24.914478Z",
239-
"iopub.status.idle": "2025-05-06T13:05:25.751260Z",
240-
"shell.execute_reply": "2025-05-06T13:05:25.750797Z"
237+
"iopub.execute_input": "2025-05-06T13:25:49.179468Z",
238+
"iopub.status.busy": "2025-05-06T13:25:49.179339Z",
239+
"iopub.status.idle": "2025-05-06T13:25:50.011254Z",
240+
"shell.execute_reply": "2025-05-06T13:25:50.010793Z"
241241
},
242242
"vscode": {
243243
"languageId": "plaintext"
@@ -297,10 +297,10 @@
297297
"id": "696c040a",
298298
"metadata": {
299299
"execution": {
300-
"iopub.execute_input": "2025-05-06T13:05:25.753065Z",
301-
"iopub.status.busy": "2025-05-06T13:05:25.752956Z",
302-
"iopub.status.idle": "2025-05-06T13:05:26.588190Z",
303-
"shell.execute_reply": "2025-05-06T13:05:26.587644Z"
300+
"iopub.execute_input": "2025-05-06T13:25:50.012839Z",
301+
"iopub.status.busy": "2025-05-06T13:25:50.012725Z",
302+
"iopub.status.idle": "2025-05-06T13:25:50.855577Z",
303+
"shell.execute_reply": "2025-05-06T13:25:50.855025Z"
304304
},
305305
"vscode": {
306306
"languageId": "plaintext"
@@ -364,6 +364,17 @@
364364
" ),\n",
365365
")"
366366
]
367+
},
368+
{
369+
"cell_type": "markdown",
370+
"id": "466cf815",
371+
"metadata": {},
372+
"source": [
373+
"Note that we use `dvr.replicate()` when adding the previously defined DVR to the renderer. This is because each\n",
374+
"rendering stage can only be added to one renderer, hence, we replicate it this time. Of course, we could have used the\n",
375+
"`dvr.replicate()` method the first time that we added the DVR to a renderer, too, but this is not mandatory. All\n",
376+
"rendering stages provide such a method."
377+
]
367378
}
368379
],
369380
"metadata": {

0 commit comments

Comments
 (0)