Capture call environment in Weave.jl?

You can pass an environment in to Weave.

Check out the mod keyword argument.

So maybe in your “generate” script, you can do everything inside some module MyMod.

And then pass that module to Weave

1 Like