From c9561b24227447ad598b1a9dfe5596397c66730d Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 3 Sep 2024 13:18:46 -0400 Subject: [PATCH] docs(datatypes): install rich traceback handler for prettier exception tracebacks --- docs/concepts/datatypes.qmd | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/concepts/datatypes.qmd b/docs/concepts/datatypes.qmd index c7aa849a9d7a..d172fbabb403 100644 --- a/docs/concepts/datatypes.qmd +++ b/docs/concepts/datatypes.qmd @@ -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