17
17
CellInputNode ,
18
18
CellOutput ,
19
19
CellOutputNode ,
20
- CellOutputBundleNode ,
20
+ MimeBundleNode ,
21
21
JupyterKernelNode ,
22
22
JupyterWidgetViewNode ,
23
23
JupyterWidgetStateNode ,
24
24
WIDGET_VIEW_MIMETYPE ,
25
25
JupyterDownloadRole ,
26
26
CombineCellInputOutput ,
27
- CellOutputsToNodes ,
28
27
)
29
28
from .execute import JupyterKernel , ExecuteJupyterCells
30
29
from .thebelab import ThebeButton , ThebeButtonNode , ThebeOutputNode , ThebeSourceNode
@@ -152,7 +151,7 @@ def setup(app):
152
151
)
153
152
app .add_config_value ("jupyter_execute_default_kernel" , "python3" , "env" )
154
153
app .add_config_value (
155
- "jupyter_execute_data_priority " ,
154
+ "render_priority_html " ,
156
155
[
157
156
WIDGET_VIEW_MIMETYPE ,
158
157
"application/javascript" ,
@@ -165,6 +164,17 @@ def setup(app):
165
164
],
166
165
"env" ,
167
166
)
167
+ app .add_config_value (
168
+ "render_priority_latex" ,
169
+ [
170
+ "image/svg+xml" ,
171
+ "image/png" ,
172
+ "image/jpeg" ,
173
+ "text/latex" ,
174
+ "text/plain" ,
175
+ ],
176
+ "env" ,
177
+ )
168
178
169
179
# ipywidgets config
170
180
app .add_config_value ("jupyter_sphinx_require_url" , REQUIRE_URL_DEFAULT , "html" )
@@ -190,7 +200,7 @@ def setup(app):
190
200
)
191
201
192
202
# Register our container nodes, these should behave just like a regular container
193
- for node in [JupyterCellNode , CellInputNode , CellOutputNode ]:
203
+ for node in [JupyterCellNode , CellInputNode , CellOutputNode , MimeBundleNode ]:
194
204
app .add_node (
195
205
node ,
196
206
override = True ,
@@ -201,18 +211,6 @@ def setup(app):
201
211
man = (render_container ),
202
212
)
203
213
204
- # Register the output bundle node.
205
- # No translators should touch this node because we'll replace it in a post-transform
206
- app .add_node (
207
- CellOutputBundleNode ,
208
- override = True ,
209
- html = (halt , None ),
210
- latex = (halt , None ),
211
- textinfo = (halt , None ),
212
- text = (halt , None ),
213
- man = (halt , None ),
214
- )
215
-
216
214
# JupyterWidgetViewNode holds widget view JSON,
217
215
# but is only rendered properly in HTML documents.
218
216
app .add_node (
@@ -278,7 +276,6 @@ def setup(app):
278
276
app .add_role ("jupyter-download:script" , JupyterDownloadRole ())
279
277
app .add_transform (CombineCellInputOutput )
280
278
app .add_transform (ExecuteJupyterCells )
281
- app .add_transform (CellOutputsToNodes )
282
279
283
280
# For syntax highlighting
284
281
app .add_lexer ("ipythontb" , IPythonTracebackLexer )
0 commit comments