File tree Expand file tree Collapse file tree 2 files changed +17
-13
lines changed
site/en/tutorials/quickstart
tools/tensorflow_docs/tools/nbfmt Expand file tree Collapse file tree 2 files changed +17
-13
lines changed Original file line number Diff line number Diff line change 12
12
},
13
13
{
14
14
"cell_type" : " code" ,
15
- "execution_count" : 0 ,
15
+ "execution_count" : null ,
16
16
"metadata" : {
17
17
"cellView" : " form" ,
18
18
"colab" : {},
108
108
},
109
109
{
110
110
"cell_type" : " code" ,
111
- "execution_count" : 0 ,
111
+ "execution_count" : null ,
112
112
"metadata" : {
113
113
"colab" : {},
114
114
"colab_type" : " code" ,
131
131
},
132
132
{
133
133
"cell_type" : " code" ,
134
- "execution_count" : 0 ,
134
+ "execution_count" : null ,
135
135
"metadata" : {
136
136
"colab" : {},
137
137
"colab_type" : " code" ,
157
157
},
158
158
{
159
159
"cell_type" : " code" ,
160
- "execution_count" : 0 ,
160
+ "execution_count" : null ,
161
161
"metadata" : {
162
162
"colab" : {},
163
163
"colab_type" : " code" ,
185
185
},
186
186
{
187
187
"cell_type" : " code" ,
188
- "execution_count" : 0 ,
188
+ "execution_count" : null ,
189
189
"metadata" : {
190
190
"colab" : {},
191
191
"colab_type" : " code" ,
209
209
},
210
210
{
211
211
"cell_type" : " code" ,
212
- "execution_count" : 0 ,
212
+ "execution_count" : null ,
213
213
"metadata" : {
214
214
"colab" : {},
215
215
"colab_type" : " code" ,
243
243
},
244
244
{
245
245
"cell_type" : " code" ,
246
- "execution_count" : 0 ,
246
+ "execution_count" : null ,
247
247
"metadata" : {
248
248
"colab" : {},
249
249
"colab_type" : " code" ,
269
269
},
270
270
{
271
271
"cell_type" : " code" ,
272
- "execution_count" : 0 ,
272
+ "execution_count" : null ,
273
273
"metadata" : {
274
274
"colab" : {},
275
275
"colab_type" : " code" ,
282
282
},
283
283
{
284
284
"cell_type" : " code" ,
285
- "execution_count" : 0 ,
285
+ "execution_count" : null ,
286
286
"metadata" : {
287
287
"colab" : {},
288
288
"colab_type" : " code" ,
307
307
},
308
308
{
309
309
"cell_type" : " code" ,
310
- "execution_count" : 0 ,
310
+ "execution_count" : null ,
311
311
"metadata" : {
312
312
"colab" : {},
313
313
"colab_type" : " code" ,
330
330
},
331
331
{
332
332
"cell_type" : " code" ,
333
- "execution_count" : 0 ,
333
+ "execution_count" : null ,
334
334
"metadata" : {
335
335
"colab" : {},
336
336
"colab_type" : " code" ,
363
363
},
364
364
{
365
365
"cell_type" : " code" ,
366
- "execution_count" : 0 ,
366
+ "execution_count" : null ,
367
367
"metadata" : {
368
368
"colab" : {},
369
369
"colab_type" : " code" ,
379
379
},
380
380
{
381
381
"cell_type" : " code" ,
382
- "execution_count" : 0 ,
382
+ "execution_count" : null ,
383
383
"metadata" : {
384
384
"colab" : {},
385
385
"colab_type" : " code" ,
Original file line number Diff line number Diff line change @@ -138,6 +138,10 @@ def clean_cells(data) -> None:
138
138
if cell .get ("outputs" , None ) is None :
139
139
cell ["outputs" ] = []
140
140
141
+ # Spec allows null or integer, but use null since it's the Colab default.
142
+ if cell .get ("execution_count" ) == 0 :
143
+ cell ["execution_count" ] = None
144
+
141
145
if has_outputs :
142
146
warn ("Removed the existing output cells." )
143
147
You can’t perform that action at this time.
0 commit comments