Skip to content

Commit 8ff2203

Browse files
committed
Remove diverted output from dispatch_run
1 parent 593df6d commit 8ff2203

15 files changed

+824
-462
lines changed

manual_test_nbs/delimit tests.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
"name": "stdout",
101101
"output_type": "stream",
102102
"text": [
103-
"The delimiter is currently: ;\n"
103+
"Stata command delimiter: ;\n"
104104
]
105105
}
106106
],

manual_test_nbs/nbstata demo.ipynb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,15 @@
9292
"execution_count": 5,
9393
"id": "3fff4f8d-4eb6-428c-97e6-ab1daa686e5f",
9494
"metadata": {},
95-
"outputs": [],
95+
"outputs": [
96+
{
97+
"name": "stdout",
98+
"output_type": "stream",
99+
"text": [
100+
"\n"
101+
]
102+
}
103+
],
96104
"source": [
97105
"capture program drop display1\n",
98106
"program display1\n",

manual_test_nbs/nbstata manual tests.ipynb

Lines changed: 71 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": null,
5+
"execution_count": 1,
66
"id": "462a5e62-0d52-413c-a30a-8f05462e8557",
77
"metadata": {},
88
"outputs": [
@@ -20,10 +20,18 @@
2020
},
2121
{
2222
"cell_type": "code",
23-
"execution_count": null,
23+
"execution_count": 2,
2424
"id": "6f903656-7b4f-49d2-8326-c7bdedaeff07",
2525
"metadata": {},
26-
"outputs": [],
26+
"outputs": [
27+
{
28+
"name": "stdout",
29+
"output_type": "stream",
30+
"text": [
31+
"\n"
32+
]
33+
}
34+
],
2735
"source": [
2836
"*%%quietly\n",
2937
"list in 1/1, noobs clean\n",
@@ -32,7 +40,7 @@
3240
},
3341
{
3442
"cell_type": "code",
35-
"execution_count": null,
43+
"execution_count": 3,
3644
"id": "435a273e-ec66-4630-995f-a3ba45a12c4c",
3745
"metadata": {},
3846
"outputs": [
@@ -61,7 +69,7 @@
6169
},
6270
{
6371
"cell_type": "code",
64-
"execution_count": null,
72+
"execution_count": 4,
6573
"id": "5ad2e788-819c-4c65-a9ac-98dee887fe18",
6674
"metadata": {},
6775
"outputs": [
@@ -86,10 +94,18 @@
8694
},
8795
{
8896
"cell_type": "code",
89-
"execution_count": null,
97+
"execution_count": 5,
9098
"id": "14bb98ae-acd7-4f24-832c-bc7cc5237862",
9199
"metadata": {},
92-
"outputs": [],
100+
"outputs": [
101+
{
102+
"name": "stdout",
103+
"output_type": "stream",
104+
"text": [
105+
"\n"
106+
]
107+
}
108+
],
93109
"source": [
94110
"program define display1\n",
95111
" list in 1/1, noobs clean\n",
@@ -98,7 +114,7 @@
98114
},
99115
{
100116
"cell_type": "code",
101-
"execution_count": null,
117+
"execution_count": 6,
102118
"id": "4ecdf630-f4ea-4840-b81c-6d29855c2f30",
103119
"metadata": {},
104120
"outputs": [
@@ -122,10 +138,18 @@
122138
},
123139
{
124140
"cell_type": "code",
125-
"execution_count": null,
141+
"execution_count": 7,
126142
"id": "746cea6f-510b-427b-a737-f94b7f4e093e",
127143
"metadata": {},
128-
"outputs": [],
144+
"outputs": [
145+
{
146+
"name": "stdout",
147+
"output_type": "stream",
148+
"text": [
149+
"\n"
150+
]
151+
}
152+
],
129153
"source": [
130154
"program drop display1\n",
131155
"program display1\n",
@@ -135,10 +159,18 @@
135159
},
136160
{
137161
"cell_type": "code",
138-
"execution_count": null,
162+
"execution_count": 8,
139163
"id": "1d78cf90-d4e7-4065-8031-eabd63549d70",
140164
"metadata": {},
141-
"outputs": [],
165+
"outputs": [
166+
{
167+
"name": "stdout",
168+
"output_type": "stream",
169+
"text": [
170+
"\n"
171+
]
172+
}
173+
],
142174
"source": [
143175
"program drop display1\n",
144176
"pr display1\n",
@@ -148,7 +180,7 @@
148180
},
149181
{
150182
"cell_type": "code",
151-
"execution_count": null,
183+
"execution_count": 9,
152184
"id": "0d8da0e5-96de-4b46-8d57-9693a8359de9",
153185
"metadata": {},
154186
"outputs": [
@@ -157,7 +189,8 @@
157189
"output_type": "stream",
158190
"text": [
159191
" 1. list in 1/1, noobs clean\n",
160-
" 2. end\n"
192+
" 2. end\n",
193+
"\n"
161194
]
162195
}
163196
],
@@ -170,7 +203,7 @@
170203
},
171204
{
172205
"cell_type": "code",
173-
"execution_count": null,
206+
"execution_count": 10,
174207
"id": "95c62480-e85f-4caa-9eae-ea31713b082c",
175208
"metadata": {},
176209
"outputs": [
@@ -190,14 +223,16 @@
190223
},
191224
{
192225
"cell_type": "code",
193-
"execution_count": null,
226+
"execution_count": 11,
194227
"id": "7af91d6a-8b3b-48c0-a023-f071c44ac471",
195228
"metadata": {},
196229
"outputs": [
197230
{
198231
"name": "stdout",
199232
"output_type": "stream",
200233
"text": [
234+
"\n",
235+
"\n",
201236
"\n",
202237
" year le \n",
203238
" 1901 49.1 \n"
@@ -218,7 +253,7 @@
218253
},
219254
{
220255
"cell_type": "code",
221-
"execution_count": null,
256+
"execution_count": 12,
222257
"id": "4205ccae-607f-4d2c-8a8d-3df4a3315c22",
223258
"metadata": {},
224259
"outputs": [
@@ -243,15 +278,16 @@
243278
},
244279
{
245280
"cell_type": "code",
246-
"execution_count": null,
281+
"execution_count": 13,
247282
"id": "bd510409-eb47-4132-9e88-43ca387ce449",
248283
"metadata": {},
249284
"outputs": [
250285
{
251286
"name": "stdout",
252287
"output_type": "stream",
253288
"text": [
254-
"hello\n"
289+
"hello\n",
290+
"\n"
255291
]
256292
}
257293
],
@@ -263,7 +299,7 @@
263299
},
264300
{
265301
"cell_type": "code",
266-
"execution_count": null,
302+
"execution_count": 14,
267303
"id": "15ef2172-c813-499c-8507-6d4da35d11ec",
268304
"metadata": {},
269305
"outputs": [
@@ -288,7 +324,7 @@
288324
},
289325
{
290326
"cell_type": "code",
291-
"execution_count": null,
327+
"execution_count": 15,
292328
"id": "ae3bbbcc-0234-4093-a08b-db870f3d5701",
293329
"metadata": {},
294330
"outputs": [
@@ -317,7 +353,7 @@
317353
},
318354
{
319355
"cell_type": "code",
320-
"execution_count": null,
356+
"execution_count": 16,
321357
"id": "b6b0e0ee-beea-4739-9473-3ee0446f653c",
322358
"metadata": {},
323359
"outputs": [
@@ -348,7 +384,7 @@
348384
},
349385
{
350386
"cell_type": "code",
351-
"execution_count": null,
387+
"execution_count": 17,
352388
"id": "09517bdc-e4df-4423-886d-50a7fc095c3c",
353389
"metadata": {},
354390
"outputs": [
@@ -368,7 +404,7 @@
368404
},
369405
{
370406
"cell_type": "code",
371-
"execution_count": null,
407+
"execution_count": 18,
372408
"id": "4a55cce7-9723-4f09-b162-d71d5d786b5a",
373409
"metadata": {},
374410
"outputs": [],
@@ -381,7 +417,7 @@
381417
},
382418
{
383419
"cell_type": "code",
384-
"execution_count": null,
420+
"execution_count": 19,
385421
"id": "23744b00-c56d-4f28-a253-0cd3984618bd",
386422
"metadata": {},
387423
"outputs": [],
@@ -394,14 +430,15 @@
394430
},
395431
{
396432
"cell_type": "code",
397-
"execution_count": null,
433+
"execution_count": 20,
398434
"id": "52f24921-d4cb-4968-8f09-90f3bbe72036",
399435
"metadata": {},
400436
"outputs": [
401437
{
402438
"name": "stdout",
403439
"output_type": "stream",
404440
"text": [
441+
"\n",
405442
"\n",
406443
" year le \n",
407444
" 1900 47.3 \n"
@@ -419,7 +456,7 @@
419456
},
420457
{
421458
"cell_type": "code",
422-
"execution_count": null,
459+
"execution_count": 21,
423460
"id": "419d13a7-3539-459c-9433-297659347473",
424461
"metadata": {},
425462
"outputs": [
@@ -438,7 +475,7 @@
438475
},
439476
{
440477
"cell_type": "code",
441-
"execution_count": null,
478+
"execution_count": 22,
442479
"id": "acb057b1-801b-4303-ae30-981ae735cfda",
443480
"metadata": {},
444481
"outputs": [
@@ -692,6 +729,12 @@
692729
"display_name": "Stata (nbstata)",
693730
"language": "stata",
694731
"name": "nbstata"
732+
},
733+
"language_info": {
734+
"file_extension": ".do",
735+
"mimetype": "text/x-stata",
736+
"name": "stata",
737+
"version": "17"
695738
}
696739
},
697740
"nbformat": 4,

0 commit comments

Comments
 (0)