-
Notifications
You must be signed in to change notification settings - Fork 371
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
pdf output with code #3415
Comments
The current PDF output button in marimo programmatically calls
This is possible with |
Thank you for the feedback! I did some more experimenting with pdf output, and tried some of your comments. This will be a bit of a grab bag of feedback. This is all on windows.
Marimo Env OutputOn windows. marimo env { "marimo": "0.10.12", "OS": "Windows", "OS Version": "10", "Processor": "Intel64 Family 6 Model 85 Stepping 4, GenuineIntel", "Python Version": "3.10.11", "Binaries": { "Browser": "131.0.6778.265", "Node": "--" }, "Dependencies": { "click": "8.1.7", "docutils": "0.20.1", "itsdangerous": "2.2.0", "jedi": "0.19.0", "markdown": "3.6", "narwhals": "1.22.0", "packaging": "23.1", "psutil": "5.9.5", "pygments": "2.16.1", "pymdown-extensions": "10.8.1", "pyyaml": "6.0.1", "ruff": "0.5.5", "starlette": "0.37.2", "tomlkit": "0.12.5", "typing-extensions": "4.7.1", "uvicorn": "0.30.1", "websockets": "12.0" }, "Optional Dependencies": { "altair": "5.3.0", "pandas": "2.1.0", "polars": "1.19.0", "pyarrow": "16.1.0" } } |
Based on these tests would one of the following solutions be well aligned with other Marimo priorities?
|
This sounds better to me. We have some existing CSS to handle |
I like that idea, I'm hoping it comes online soon so I can let my colleagues print out copies of their finished notebooks. Thanks. |
Description
I am hoping to be able to make pdf output with code, while using
mo.mpl.interactive
to display plots. Currently when I use the menu to do pdf output, it tells me to pressCrtil+.
to switch to app mode before making the pdf output. All my plots output fine, but the code is hidden.Suggested solution
I can think of 2
Alternative
No response
Additional context
My use case is that I want a hard copy of "I did this analysis this way and got this result" that is immutable. I prefer pdf to html, as some features don't work in html output. Eg the "dataframe viewer" doesn't seem to work in html output since it no longer has access to the dataframe. I just want a copy of what was on the screen (and would have been if I scrolled) when I said to export a copy, and pdf seems best matched to that.
The text was updated successfully, but these errors were encountered: