great-tables icon indicating copy to clipboard operation
great-tables copied to clipboard

I've run example on README.md and nothing happens

Open Firkraag opened this issue 1 year ago • 4 comments

Prework

Question

I've run example on README.md and nothing happens. Is the table shown on screen or saved on some file?

Firkraag avatar Dec 17 '23 02:12 Firkraag

My environment is macOS Ventura Version 13.5.2, Python 3.10.8+

Firkraag avatar Dec 17 '23 02:12 Firkraag

What version do you have installed? There's a bug with cols_hide that we fixed, and still need to release.

In jupyter lab, quarto, etc.. it should show a fully rendered table. Here's the example from the readme with cols_hide commented out:

https://shinylive.io/py/editor/#code=NobwRAdghgtgpmAXGKAHVA6VBPMAaMAYwHsIAXOcpMASxlWICcyACAZwAsaJsM4APVIzhs2AHQgS6DZiwDmwqGQD6ZKACMANiJZQ28shIBmjYjHmKVarSIwATJVBbSmrNqgCsABi8SJAYhYAETgjbjgWMg4ItjVZKAg7Fkokhwp9IyZI6JY0p0YEuTgJWKhmZTSIgF4WMTAAJi8ARi8AWi8ANnaAdjqJFIqlatqG5rbO1qaAFj7JCECAMRpNCkZ2Tx8WAFc2bjkWAAUEh30yYlyh-XU4MgB3OEoWAANS8sqn3UTngfeSja9lDBuDQWDV3N4vMAABTgnzAOqVOoAXRYAD4wXEVJUAJQsABkLBh-3hYERYBRAB4aj8htikX55iwAMKWCJOOw0dyaKDYSIabQsdR6OBJUjZCIvf6A4EfawCvISKESFgqgwYADiABUoXkqrCAUCIDRscrVRhrMpolA7HBGFCyDQyNoqnUAMp4g4sCF1PDsLbqB1OuBVIx1ECvLFDAC+kXOIBpFCjdRNEFVLAwRhgKkIW0YwgghGwUJImi2MAgbCqJOIqEoPpGXDkHHrdU0xFuLaIbbYxXJKbTGazgwoxeIpfLlYRQ3rlWUsWwzrqtzsgMG2GU2DgZWTppVg5UEDL1ztJbLFZdYAAbmOy73fSR6FBCGQqprGFs4P3Vf4MCW2JaaBtUdx3POprQAK2UQhu17FMUzAKM8HAaB4GoYQAEcthoYR4HINhzX4Mh8CIUgKCoZAFC3MhWjlEQEKRIA

machow avatar Dec 17 '23 16:12 machow

Ah, but if you run it in the console or as part as a .py file (e.g. python myfile.py) it won't render a formatted table.

(but you can return formatted html with gt_obj.render("html"))

machow avatar Dec 17 '23 16:12 machow

I've installed great-tables by pip install great-tables, the version is 0.1.3.

I've copied the example code to a .py file and run it in console

Firkraag avatar Dec 18 '23 02:12 Firkraag

This is a duplicate of #100, which should be resolved soon. Closing this one.

rich-iannone avatar Jun 17 '24 23:06 rich-iannone