Skip to content

exception types not displayed in knitr markdown Rnw document #1520

@brry

Description

@brry

In Rnw Python chunks, exception types are no longer included in the output.
In version 1.28, the example below showed
## ValueError: invalid literal for int() with base 10: 'charstring'
starting with version 1.29 (lots of exception changes), it only shows
## invalid literal for int() with base 10: 'charstring'
without the ValueError: part.

Is this intentional?
Can I get the exception types back? (I use it in slides for teaching Python, so they are really nice to have).

Note: I originally filed the issue in knitr, but it belongs here.

Content of ShowPyException.Rnw file:

---
title: "ShowPyException"
output: beamer_presentation
---

## slide title

```{python, error=TRUE}
obj = "charstring"
int(obj)
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions