Is there any way to download solara ui into PDF
Is there any way to download the entire ui in the webapp.
Here I'm trying to build a ui which is generating plots for the test that is entered to solara ui.
3 Replies
Interesting question. Something that might work, is to have playwright on the server side, and generate it there.
Another solution would be on the client side using https://github.com/eKoopmans/html2pdf.js
Does this help you?
GitHub
GitHub - eKoopmans/html2pdf.js: Client-side HTML-to-PDF rendering u...
Client-side HTML-to-PDF rendering using pure JS. Contribute to eKoopmans/html2pdf.js development by creating an account on GitHub.
Can please give any reference where both solara and javascript is used
https://github.com/widgetti/solara/blob/master/solara/components/file_download.py
https://github.com/widgetti/solara/blob/master/solara/components/download.vue
might be close to what you need, otherwise see
https://solara.dev/examples/general/vue_component
GitHub
solara/solara/components/file_download.py at master · widgetti/solara
A Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps - widgetti/solara
GitHub
solara/solara/components/download.vue at master · widgetti/solara
A Pure Python, React-style Framework for Scaling Your Jupyter and Web Apps - widgetti/solara