Skip to content

[WIP] Python variant#52

Draft
coatless wants to merge 10 commits intogadenbuie:mainfrom
coatless-quarto:python-variant
Draft

[WIP] Python variant#52
coatless wants to merge 10 commits intogadenbuie:mainfrom
coatless-quarto:python-variant

Conversation

@coatless
Copy link
Copy Markdown
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