mirror of https://github.com/mpastell/Weave.jl
Use IJulia jupyter. Closes #122
parent
ce43dea594
commit
53c2a337f3
|
@ -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
|
||||
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue