Skip to content

Commit

Permalink
docs(datatypes): install rich traceback handler for prettier exceptio…
Browse files Browse the repository at this point in the history
…n tracebacks (#10004)
  • Loading branch information
cpcloud authored Sep 3, 2024
1 parent c31412b commit 4b77e4f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/concepts/datatypes.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,21 @@ t2 = ibis.examples.population.fetch().head(100)
t2
```

```{python}
#| echo: false
import IPython
import rich
import rich.traceback as rtb
rtb.install(
suppress=[IPython, rich],
width=84,
word_wrap=True,
max_frames=1,
code_width=84,
)
del IPython, rich, rtb
```

```{python}
#| error: true
t1.bill_depth_mm + t2.population
Expand Down

0 comments on commit 4b77e4f

Please sign in to comment.