This checklist will help you diagnose problems with your ob-async
setup.
Execute the src blocks one at a time with ctrl-c ctrl-c to
ensure that ob-async-org-babel-execute-src-block is used for files
| import multiprocessing | |
| import time | |
| from itertools import product | |
| def worker(q, cmd): | |
| # get the gpu available from queue | |
| rid = q.get() | |
| # cmd execution | |
| print cmd, rid | |
| time.sleep(rid+0.9) |
| if(require("pkg_name")){ | |
| print("pkg_name is loaded correctly") | |
| } else { | |
| print("trying to install pkg_name") | |
| install.packages("pkg_name", repos="http://cran.ism.ac.jp") | |
| if(require(pkg_name)){ | |
| print("pkg_name installed and loaded") | |
| } else { | |
| stop("could not install pkg_name") | |
| } |