1717 CellInputNode ,
1818 CellOutput ,
1919 CellOutputNode ,
20- CellOutputBundleNode ,
20+ MimeBundleNode ,
2121 JupyterKernelNode ,
2222 JupyterWidgetViewNode ,
2323 JupyterWidgetStateNode ,
2424 WIDGET_VIEW_MIMETYPE ,
2525 JupyterDownloadRole ,
2626 CombineCellInputOutput ,
27- CellOutputsToNodes ,
2827)
2928from .execute import JupyterKernel , ExecuteJupyterCells
3029from .thebelab import ThebeButton , ThebeButtonNode , ThebeOutputNode , ThebeSourceNode
@@ -152,7 +151,7 @@ def setup(app):
152151 )
153152 app .add_config_value ("jupyter_execute_default_kernel" , "python3" , "env" )
154153 app .add_config_value (
155- "jupyter_execute_data_priority " ,
154+ "render_priority_html " ,
156155 [
157156 WIDGET_VIEW_MIMETYPE ,
158157 "application/javascript" ,
@@ -165,6 +164,17 @@ def setup(app):
165164 ],
166165 "env" ,
167166 )
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+ )
168178
169179 # ipywidgets config
170180 app .add_config_value ("jupyter_sphinx_require_url" , REQUIRE_URL_DEFAULT , "html" )
@@ -190,7 +200,7 @@ def setup(app):
190200 )
191201
192202 # 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 ]:
194204 app .add_node (
195205 node ,
196206 override = True ,
@@ -201,18 +211,6 @@ def setup(app):
201211 man = (render_container ),
202212 )
203213
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-
216214 # JupyterWidgetViewNode holds widget view JSON,
217215 # but is only rendered properly in HTML documents.
218216 app .add_node (
@@ -278,7 +276,6 @@ def setup(app):
278276 app .add_role ("jupyter-download:script" , JupyterDownloadRole ())
279277 app .add_transform (CombineCellInputOutput )
280278 app .add_transform (ExecuteJupyterCells )
281- app .add_transform (CellOutputsToNodes )
282279
283280 # For syntax highlighting
284281 app .add_lexer ("ipythontb" , IPythonTracebackLexer )
0 commit comments