You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/docs/smoke-all/jupyter/error/display-error-false.qmd
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -9,12 +9,12 @@ _quarto:
9
9
- '${input_stem}.quarto_ipynb'
10
10
---
11
11
12
-
With default setting, this document should error at rendering because of Exception at IPython.display level.
12
+
With default setting, this document should error at rendering because of an exception at IPython.display level.
13
13
14
14
By default `nbconvert` does not throw exception for error thrown by IPython display, on purpose as document output is still valid as there are other representation.
15
15
16
16
```{python}
17
-
# First cell - create an object with a buggy _repr_html_ method
17
+
# First cell - create an object with a buggy _repr_markdown_ method
18
18
class BuggyDisplay:
19
19
def __init__(self):
20
20
self.data = "This works fine"
@@ -37,12 +37,9 @@ buggy = BuggyDisplay()
37
37
```
38
38
39
39
```{python}
40
-
# Second cell - display the object (triggers error in _repr_html_)
41
-
# This will show an error in the output but won't stop execution
42
40
buggy
43
41
```
44
42
45
43
```{python}
46
-
# Third cell - proves execution continues
47
44
print("Execution continued despite display error")
Copy file name to clipboardExpand all lines: tests/docs/smoke-all/jupyter/error/display-error-true-global.qmd
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ With `error: true` this document should not error at rendering and Exception at
16
16
By default `nbconvert` does not throw exception for error thrown by IPython display, on purpose as document output is still valid as there are other representation.
17
17
18
18
```{python}
19
-
# First cell - create an object with a buggy _repr_html_ method
19
+
# First cell - create an object with a buggy _repr_markdown_ method
20
20
class BuggyDisplay:
21
21
def __init__(self):
22
22
self.data = "This works fine"
@@ -39,12 +39,9 @@ buggy = BuggyDisplay()
39
39
```
40
40
41
41
```{python}
42
-
# Second cell - display the object (triggers error in _repr_html_)
43
-
# This will show an error in the output but won't stop execution
44
42
buggy
45
43
```
46
44
47
45
```{python}
48
-
# Third cell - proves execution continues
49
46
print("Execution continued despite display error")
0 commit comments