machow / reactable-py

https://machow.github.io/reactable-py/
43 stars 2 forks source link

fix: make great tables optional dependency in code #30

Closed machow closed 5 days ago

machow commented 5 days ago

Addresses #29. Currently, reactable has experimental functionality for rendering a Great Tables object. This PR cleans up the code so that Great Tables is an optional dependency. This means the same functionality exists, but Great Tables is only needed if you are trying to render a Great Tables object.

Tested by uninstalling great-tables, and then running

# succeeds
from reactable import Reactable

# fails
from great_tables import GT