posit-dev / py-shinylive

Python package for deploying Shinylive applications
https://shiny.posit.co/py/docs/shinylive.html
MIT License
42 stars 4 forks source link

Jinja2 wheel not bundled unless explicitly imported in the app #4

Open dlukes opened 1 year ago

dlukes commented 1 year ago

Putting Jinja2 in a requirements.txt file, as suggested e.g. here, doesn't seem to be enough for the shinylive CLI tool to actually bundle the Jinja2 wheel in the output dir. But if I explicitly import jinja2 in app.py, the wheel gets included and rendering tables works.

Is this intentional? If so, it should probably be documented?

As an aside, thank you for bringing Shiny to Python in great style!