Skip to content

Commit

Permalink
Do not add one when output node is already there
Browse files Browse the repository at this point in the history
  • Loading branch information
kwankyu committed Jan 15, 2024
1 parent f4def96 commit 2abeb9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jupyter_sphinx/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def apply(self):
source = node.children[0]
source.attributes["classes"].append("code_cell")
node.attributes["cm_language"] = cm_language
node += CellOutputNode(classes=["cell_output"])
if len(node.children) < 2:
node += CellOutputNode(classes=["cell_output"])
apply_styling(node, thebe_config)
continue

Expand Down

0 comments on commit 2abeb9f

Please sign in to comment.