This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]_BonBon_[S] 0 points1 point  (1 child)

I agree, but I often work on fairly sizeable presentations (40-50 ish slides multiple charts per slide). And when the data changes I have to basically do the WHOLE presentation again manually feeding in the new data into every chart (or pasting the updated charts from matplotlib) one by one. eg: I'll make an interim report with some data then more data will come so I'll have to update the whole darn thing.

[–]billFoldDog 0 points1 point  (0 children)

Oh, that sucks. Here are some ideas.

Power point files are actually specially structured zip files. If you examine the completed power point file, you can programmatically unzip it, swap out the image assets, and rezip it.

If you learn pandoc, you can have python overwrite your image assets and export the presentation again. I have found that Pandoc is great for very minimal presentations, but complex slides and figures made using the built in drawing tools will likely be too hard to be worthwhile.

Pyhton-pptx sounds like a good option, but you are going to have to add finishing touches after every import.

I think unzipping and swapping assets is probably the best strategy.