JunoLab / Weave.jl

Scientific reports/literate programming for Julia
http://weavejl.mpastell.com
MIT License
831 stars 96 forks source link

Weave not working with distributed processing #269

Open aaowens opened 4 years ago

aaowens commented 4 years ago

The following jmd file fails to weave https://gist.github.com/aaowens/30528f61528104988a53e15c5402a86f .

If I try to run it with

weave("Parallel-VFI-examples.jmd")

I get errors like

ERROR: UndefVarError: DM not defined

for my module DM. Module DM is defined @everywhere and I have added multiple processes.

However, if I instead run tangle("Parallel-VFI-examples.jmd") and run the resulting Julia script by itself, it works fine.

platawiec commented 4 years ago

I came across this same issue today. I suspect tangle and then running the script will work.

jaepillee0315 commented 3 years ago

The issue persists...