question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make `rich` traceback and REPL handling more configurable

See original GitHub issue

Is it worth to add a section to pyproject.toml to configure settings for rich, e.g. [tool.kedro.rich]? Would this allow users to for example change show_locals to be set to True? (See https://github.com/kedro-org/kedro/issues/1712 for why we set it to False)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:31 (21 by maintainers)

github_iconTop GitHub Comments

6reactions
datajoelycommented, Jul 27, 2022

I’m really excited for this, it would make things a lot more configurable 😃

We also have had reports that the logging mode on databricks is unpleasant, so maybe we should have a fallback to no rich logging too.

3reactions
deepyamancommented, Aug 22, 2022

I’ve expressed this before, but I personally like the approach libraries like Typer take in enabling rich tracebacks if it’s installed, and not using them if not installed, since there’s no need to push the use of rich tracebacks upon everyone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Better Python tracebacks with Rich - Will McGugan
It's configurable, but I find that 7 lines of code are enough to ... To try out rich tracebacks, install the exception handler...
Read more >
Traceback — Rich 12.6.0 documentation
Rich tracebacks are easier to read and show more code than standard Python tracebacks. To see an example of a Rich traceback, running...
Read more >
Improve the setup of logging Milestone · GitHub
A Python framework for creating reproducible, maintainable and modular data science code. - Improve the setup of logging Milestone · kedro-org/kedro.
Read more >
rich: Documentation | Openbase
Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, tracebacks, and more — out of the box. Features.
Read more >
TIL #043 – rich traceback and exception logging - Mathspp
How to make your tracebacks more beautiful ... In order to use it, you only need to install the traceback handler that comes...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found