friendly-traceback / friendly

Friendly-traceback's version used in most situations
https://friendly-traceback.github.io/docs/index.html
MIT License
40 stars 5 forks source link

Add set_tb_width for Jupyter #9

Closed aroberge closed 3 years ago

aroberge commented 3 years ago

Jupyter notebooks output can be quite wide when using Rich. It is possible to control the width using set_width() to make the text easier to read, at the expense of possibly wrapping some tracebacks.

Having a different width for anything that includes code (traceback or output of where()) might be helpful.