dashboards icon indicating copy to clipboard operation
dashboards copied to clipboard

PDF Output?

Open TheDataLeek opened this issue 8 years ago • 6 comments

Hey, this is awesome! Do you have any plans to make these dashboards exportable as PDFs or just raw HTML? Being able to format cells like this is much nicer for some stuff than the normal notebook...

TheDataLeek avatar Jun 08 '16 21:06 TheDataLeek

We have noticed the potential that the dashboard layout has but to my knowledge haven't discussed static outputs such as PDF or raw HTML. You say it would be nicer for some stuff; do you have a specific use case in mind?

dalogsdon avatar Jun 08 '16 22:06 dalogsdon

Yeah, so for instance, if I wanted to arrange different cells to be side by side, currently the best-ish way to do it is to either save the output images and re-render with markdown/display use the display module, or use matplotlib to show images inline. This doesn't work as well for something like tables however.

Other examples include being able to (hypothetically) create a static website using a series of these HTML-output dashboards.

Being able to print dashboard views without having to screenshot them is a plus.

etc.

The big thing I would use it for is more control over how documents that I write in the notebook look. Currently I use the standard nbconvert --to pdf <notebook> method to get a pdf, but it sometimes has issues with image size, etc. Having a more fine-grained level of control would be nice.

TheDataLeek avatar Jun 08 '16 22:06 TheDataLeek

If the metadata spec for the layouts becomes something standard across the various jupyter tools, then nb convert could perhaps respect the layout when converting to various formats.

The spec is currently on the wiki here. (Sorry, on mobile, else I'd link)

parente avatar Jun 08 '16 23:06 parente

https://github.com/jupyter-incubator/dashboards/wiki/Dashboard-Metadata-and-Rendering

jtyberg avatar Jun 08 '16 23:06 jtyberg

Also, another good reason to support PDF output is sometimes it's nice to be able to reorganize cells dynamically and not have to have all the code inline. I generate a lot of reports using the notebook and I've had to use different tools because there's not currently a way to suppress code input cells. This dashboard view supports that however (notably the report view).

TheDataLeek avatar Jun 09 '16 16:06 TheDataLeek

/cc @minrk about nbconvert

parente avatar Jul 27 '16 13:07 parente