File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
tests/docs/smoke-all/jupyter/error Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,12 @@ class BuggyDisplay:
2020 self.data = "This works fine"
2121
2222 def _repr_html_(self):
23- # This error happens during display, not execution
24- # raise ValueError("Display phase error!")
23+ # HTML representation used for `format: html`
2524 return "<b>HTML fallback:</b> " + self.data
2625
2726 def _repr_markdown_(self):
28- # Markdown representation as fallback when HTML fails
29- # return "**Markdown fallback:** " + self.data
27+ # This error happens during display, not execution
28+ # even if the markdown reprensentation is not used
3029 raise ValueError("Display phase error!")
3130
3231 def __repr__(self):
Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ class BuggyDisplay:
2222 self.data = "This works fine"
2323
2424 def _repr_html_(self):
25- # This error happens during display, not execution
25+ # HTML representation used for `format: html`
2626 return "<b>HTML fallback:</b> " + self.data
2727
2828 def _repr_markdown_(self):
29- # Markdown representation as fallback when HTML fails
29+ # This error happens during display, not execution
30+ # even if the markdown reprensentation is not used
3031 raise ValueError("Display phase error for Markdown!")
3132
3233 def __repr__(self):
You can’t perform that action at this time.
0 commit comments