@@ -131,8 +131,6 @@ class JupyterCell(Directive):
131
131
If provided, the cell output will not be displayed in the output.
132
132
code-below : bool
133
133
If provided, the code will be shown below the cell output.
134
- no-thebelab : bool
135
- If provided, thebelab will be disabled for this cell
136
134
raises : comma separated list of exception types
137
135
If provided, a comma-separated list of exception type names that
138
136
the cell may raise. If one of the listed execption types is raised
@@ -155,7 +153,6 @@ class JupyterCell(Directive):
155
153
'hide-code' : directives .flag ,
156
154
'hide-output' : directives .flag ,
157
155
'code-below' : directives .flag ,
158
- 'no-thebelab' : directives .flag ,
159
156
'raises' : csv_option ,
160
157
'stderr' : directives .flag ,
161
158
}
@@ -190,7 +187,6 @@ def run(self):
190
187
hide_code = ('hide-code' in self .options ),
191
188
hide_output = ('hide-output' in self .options ),
192
189
code_below = ('code-below' in self .options ),
193
- no_thebelab = ('no-thebelab' in self .options ),
194
190
raises = self .options .get ('raises' ),
195
191
stderr = ('stderr' in self .options ),
196
192
)]
@@ -332,8 +328,7 @@ def apply(self):
332
328
if not doctree .traverse (JupyterCellNode ):
333
329
return
334
330
335
- any_thebelab = any (not cell ['no_thebelab' ] for cell in doctree .traverse (JupyterCellNode ))
336
- if thebe_config and any_thebelab :
331
+ if thebe_config :
337
332
# Add the button at the bottom if it is not present
338
333
if not doctree .traverse (ThebeButtonNode ):
339
334
doctree .append (ThebeButtonNode ())
@@ -545,7 +540,7 @@ def cell_output_to_nodes(cell, data_priority, dir, thebe_config):
545
540
546
541
547
542
def attach_outputs (output_nodes , node , thebe_config , cm_language ):
548
- if thebe_config and not node . attributes [ 'no_thebelab' ] :
543
+ if thebe_config :
549
544
source = node .children [0 ]
550
545
551
546
thebe_source = ThebeSourceNode (hide_code = node .attributes ['hide_code' ],
0 commit comments