Weave.jl icon indicating copy to clipboard operation
Weave.jl copied to clipboard

Multiple output formats

Open ChrisRackauckas opened this issue 7 years ago • 3 comments

Is there a way to tell Weave you want multiple output formats? I can do that by running subsequent weave calls, but doing so requires evaluating the same script many times. It would be nice to be able to run the script a single time but then have the output saved in multiple ways.

ChrisRackauckas avatar Nov 17 '18 14:11 ChrisRackauckas

Sorry for the delay in my reply! This is not currently possible as Weave doesn't store the output in multiple formats when running the code. This is mainly because in some formats displaying a plot can take a long time so it would slow down processing of the document when you only want one format.

Adding an option to store multiple formats would be very easy, but adding support for that in output formats takes a bit more work.

mpastell avatar Feb 07 '19 19:02 mpastell

This feature would be great!

I am using Weave in https://github.com/JuliaStochOpt/ParameterJuMP.jl and I am considering using it in https://github.com/JuliaOpt/JuMP.jl also!

But I have this problem of having to execute the script multiple times....

joaquimg avatar Mar 11 '19 19:03 joaquimg

Just wanted to throw my weight into this as well; we're using Weave to build outputs for benchmarks over at SciMLBenchmarks, and although it's great to be able to weave out to .html, .pdf, .md, etc.... it's quite wasteful of CPU time for us to be running the benchmarks N times for N outputs. What should take ~20 minutes instead takes over an hour, because the benchmarking process gets run so many times.

staticfloat avatar May 08 '21 21:05 staticfloat