Skip to content

Commit 2abeb9f

Browse files
committed
Do not add one when output node is already there
1 parent f4def96 commit 2abeb9f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter_sphinx/execute.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,8 @@ def apply(self):
164164
source = node.children[0]
165165
source.attributes["classes"].append("code_cell")
166166
node.attributes["cm_language"] = cm_language
167-
node += CellOutputNode(classes=["cell_output"])
167+
if len(node.children) < 2:
168+
node += CellOutputNode(classes=["cell_output"])
168169
apply_styling(node, thebe_config)
169170
continue
170171

0 commit comments

Comments
 (0)