scverse / anndata

Annotated data.
http://anndata.readthedocs.io
BSD 3-Clause "New" or "Revised" License
577 stars 152 forks source link

HTML Repr #675

Open ivirshup opened 2 years ago

ivirshup commented 2 years ago

We should have a nicer repr for the anndata object. Ideally a rich one with more info and collapsibility. mudata already has this implemented, and we've been given permission to steal it here.

Previous discussion #346, #521, #671

Zethson commented 2 years ago

@ivirshup scvi tools also had an option (deprecated for some reason). See: https://github.com/theislab/ehrapy/issues/233 It's based on Rich tables (https://github.com/Textualize/rich). I use Rich excessively for everything when appropriate.

But I like the collapsible option. Think that's a good idea.

ivirshup commented 2 years ago

Could you point me at the deprecated thing in scvi-tools? Found it

To me, collapsibility is a must, since the "tons of columns" makes it long quick!