Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

rich.inspect has been my go-to for this. Comes pre-installed in a vanilla Colab kernel too


Right! I usually use rich's print [1] for this kind of thing too, which I chose after testing a few other libraries that do pretty printing.

--

1: https://github.com/Textualize/rich?tab=readme-ov-file#rich-p...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: