-
Notifications
You must be signed in to change notification settings - Fork 350
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
Export Marimo notebook to PDF #896
Comments
Thanks for the feature request! It's one we've gotten several times now, so it's definitely in our backlog. |
@scls19fr are there any pdf rendering libraries you recommend? Exporting to PDF by CLI will be tricky. It'll still require a browser. Do you expect that to run a headless browser? Where do you want to run this CLI command? |
Yes headless CLI command will be fine. Maybe fpdf2 https://py-pdf.github.io/fpdf2/ Or Reportlab https://docs.reportlab.com/ Or for low level pdf generation pydyf https://www.courtbouillon.org/pydyf/ See |
This SO question can help https://stackoverflow.com/questions/27649600/python-html-to-pdf-with-full-support-for-css3-and-html5 about rendering html/css to pdf. This post also |
It would be better if native pdf export could provide choice disabling some cells like slider or dropdown. |
@scls19fr @fujimuramasa |
Hi @mscolnick , Sorry for not answering quickly I was quite busy. export to html seems to be broken in my install.
|
This might be an issue with windows (or the python version) - @scls19fr can you create a different issue with your python version and env info (with |
Could it make sense to consider making a |
Here's an example of a PDF with marimo: https://dmadisetti.github.io/quarto-marimo/tutorials/example-pdf.pdf Using a pandoc filter (and quarto, but you can remove the quarot bit). I think now that marimo can interpret markdown, I can rewrite the filter to be less convoluted |
I saw #2387 is disabling PDF export while editing. I think we should have 2 kind of PDF exports.
|
Description
Hello,
I think PDF export is missing
Kind regards
Suggested solution
Following #892 a PDF export feature will be great.
It will be even greater if it is accessible both through CLI and from UI
Embedding code into PDF to be able to regenerate notebook (into https://marimo.app/ or in our own Marimo install) could be a nice feature to also have.
Alternative
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: