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)
|
notebook(source::String, out_path=:pwd)
|
||||||
|
|
||||||
Convert Weave document `source` to Jupyter notebook and execute the code
|
Convert Weave document `source` to Jupyter notebook and execute the code
|
||||||
using nbconvert. You need to have nbconvert installed and in your
|
using nbconvert. Requires IJulia. **Ignores** all chunk options
|
||||||
path. **Ignores** all chunk options.
|
|
||||||
|
|
||||||
* `out_path`: Path where the output is generated. Can be: `:doc`: Path of the source document,
|
* `out_path`: Path where the output is generated. Can be: `:doc`: Path of the source document,
|
||||||
`:pwd`: Julia working directory, `"somepath"`: Path as a
|
`:pwd`: Julia working directory, `"somepath"`: Path as a
|
||||||
|
@ -164,7 +163,8 @@ function notebook(source::String, out_path=:pwd, timeout=-1)
|
||||||
end
|
end
|
||||||
|
|
||||||
info("Running nbconvert")
|
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
|
end
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue