Use IJulia jupyter. Closes #122

pull/124/head
Matti Pastell 2018-02-27 15:08:08 +02:00
parent ce43dea594
commit 53c2a337f3
1 changed files with 7 additions and 7 deletions

View File

@ -145,8 +145,7 @@ end
notebook(source::String, out_path=:pwd)
Convert Weave document `source` to Jupyter notebook and execute the code
using nbconvert. You need to have nbconvert installed and in your
path. **Ignores** all chunk options.
using nbconvert. Requires IJulia. **Ignores** all chunk options
* `out_path`: Path where the output is generated. Can be: `:doc`: Path of the source document,
`:pwd`: Julia working directory, `"somepath"`: Path as a
@ -164,7 +163,8 @@ function notebook(source::String, out_path=:pwd, timeout=-1)
end
info("Running nbconvert")
out = readstring(`jupyter nbconvert --ExecutePreprocessor.timeout=$timeout --to notebook --execute $outfile --output $outfile`)
eval(parse("using IJulia"))
out = readstring(`$(IJulia.jupyter)-nbconvert --ExecutePreprocessor.timeout=$timeout --to notebook --execute $outfile --output $outfile`)
end
"""