kedro-org / kedro

Kedro is a toolbox for production-ready data science. It uses software engineering best practices to help you create data engineering and data science pipelines that are reproducible, maintainable, and modular.
https://kedro.org
Apache License 2.0
9.48k stars 874 forks source link

Pretty printing: `AbstractDataset.__repr__` #3980

Open ElenaKhaustova opened 3 days ago

ElenaKhaustova commented 3 days ago

Description

Parent ticket: https://github.com/kedro-org/kedro/issues/3913

Implement __repr__ for AbstractDataset for better dataset representation and printing and further use it within DataCatalog.__repr__

Context

https://github.com/kedro-org/kedro/issues/3913#issue-2330910213 https://github.com/kedro-org/kedro/issues/1721

Possible Implementation

ElenaKhaustova commented 1 day ago

I've prototyped two different approaches for printing:

Screenshot 2024-07-05 at 00 27 12

Screenshot 2024-07-05 at 00 16 11

I'm curious about what you think. Does it feel good enough? Do we want more or less information provided? Which approach seems better?

noklam commented 21 hours ago

One caveats if you are doing pprint https://github.com/kedro-org/vscode-kedro/pull/33