mljar / mercury

Convert Jupyter Notebooks to Web Apps

Home Page:https://RunMercury.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any way to programatically export .pdfs?

hmcvieira opened this issue · comments

I would like to use mercury to export reports to .pdf files programmatically, meaning that I want to be able to run a command in which I identify the report name and the widget values and the report gets exported to a certain folder without interacting with the GUI. Is that possible?

Hi @hmcvieira,

Right now there is no code for this, but it would be a nice feature. I'll be happy to add it. May I ask about details about your use case? Do you plan to run PDF export one time or in periodic schedule?

Hi @pplonski, the idea would be to be able to have an export command/function that would allow the export, giving the desired output path as an argument. Additionally if possible, it would be nice to be able to set the widget values as input as well to that function. For example, if I have to export a report for each client of the 1000 total, I would loop through the list of client, filtering the report by their ID. It would be awesome if possible.

Maybe you should just check nbconvert tool for this?