Skip to content

[REQUEST] environmental variable to disable rich traceback #3640

@matthewfranglen

Description

@matthewfranglen

How would you improve Rich?

I am using huggingface transformers to train a model in a project with a bunch of dependencies. One of those dependencies is installing the rich traceback.

When there is an error then over two thousand lines of output are printed because the model is serialized on almost every frame (>100 lines of output) along with large tensors, dataframes etc. This makes the stack trace unusable.

I cannot control the fact that rich.traceback.install has been called somewhere. It would be nice if I could set an environmental variable that would prevent the installation from taking effect.

What problem does it solve for you?

I would be able to read and understand the stack trace that is produced.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions