Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support htmltools.browsable() methods #79

Open
jooyoungseo opened this issue Jan 2, 2024 · 2 comments
Open

feat: support htmltools.browsable() methods #79

jooyoungseo opened this issue Jan 2, 2024 · 2 comments

Comments

@jooyoungseo
Copy link

In R {htmltools}, there is a way to preview html results in browsers from console via htmltools::browsable(). However, {py-htmltools} does not seem to have htmltools.browsable() methods.

This feature could be possibly integrated in {great_tables} to support some preview results, such as posit-dev/great-tables#100

@cpsievert
Copy link
Collaborator

Hi @jooyoungseo. The closest thing we have to browsable() is the .show() method, which should be on any Tag/TagList:

>>> import htmltools
>>> htmltools.div("hello").show()

@jooyoungseo
Copy link
Author

@cpsievert -- This is cool! For those coming from R {htmltools} package, are you open to alias this method to browsable() as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants