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

[WIP] Python variant #52

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

coatless
Copy link
Collaborator

@coatless coatless commented Feb 4, 2024

Close #42

Translates countdown() and countdown_style() over to Python.

Also includes a restriction so that language-specific CI runs only when files in r/ or python/ change.

We currently have:

Screenshot showing a demonstration of the example.ipynb with the two countdown methods

I'm not sure if there is an issue with how the HTMLDependency() is being registered; but, the countdown at the moment renders but is not clickable with .show() (I think this is the same as browsable()).

I pieced together the changes needed by looking at:


Some useful examples of py-htmltools are over on py-shiny's website:

Note: Tags in shiny.ui are just re-exports from htmltools: https://github.com/posit-dev/py-shiny/blob/6f4bf63b85587c7de2712505dc65a91036ec34a1/shiny/ui/__init__.py#L327-L356

@coatless coatless marked this pull request as draft February 4, 2024 11:25
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

Successfully merging this pull request may close these issues.

Python variant
1 participant