comet-ml / kangas

🦘 Explore multimedia datasets at scale
https://github.com/comet-ml/kangas/wiki
Apache License 2.0
1.04k stars 46 forks source link

Ability to display more than 10 rows in datagrid.show()? #124

Closed jackperkins98 closed 1 year ago

jackperkins98 commented 1 year ago

Hello! Myself and some others are interested in using kangas for image modeling projects. Is there a way to display more rows in the datagrid.show() UI without flipping pages? The page flips are quick but some of us would prefer to scroll longer, especially when reviewing many images for long periods. Thanks!

dsblank commented 1 year ago

@jackperkins98 Yes, you can. You can add ?rows=15 to show 15 rows. Be careful that you don't show too many.... it can have a bad effect on performance.

Let us know if that works for you.

dsblank commented 1 year ago

With show() you can add datagrid.show(rows=15)

jackperkins98 commented 1 year ago

Perfect! Thank you.

jackperkins98 commented 1 year ago

Sorry to reopen - is there also a similar option for launching from the command line? Thanks.

dsblank commented 1 year ago

No problem! Are you working from your own cloned copy of this repo, or using the pip-installed version?

If clone, then here is a PR to do what you request: https://github.com/comet-ml/kangas/pull/125

jackperkins98 commented 1 year ago

Pip installed version, but I can set up repo access. I will try this branch, thanks!