Weave.jl icon indicating copy to clipboard operation
Weave.jl copied to clipboard

Doesn't find jupyter nbconvert

Open dpsanders opened this issue 6 years ago • 2 comments

julia> notebook("01. Introduction to Julia.jmd")
[ Info: Running nbconvert
ERROR: IOError: could not spawn `jupyter nbconvert --ExecutePreprocessor.timeout=-1 --to notebook --execute '/Users/dpsanders/Dropbox/teaching/6.S083_private/lectures/01. Introduction to Julia.ipynb' --output '/Users/dpsanders/Dropbox/teaching/6.S083_private/lectures/01. Introduction to Julia.ipynb'`:

This works from the command line once I added a bash alias for jupyter, but doesn't work from within Weave.

dpsanders avatar Oct 21 '19 04:10 dpsanders

That's just a consequence of run etc not starting bash to run your code. Note that you can give the path to Jupyter as a kwarg: https://github.com/JunoLab/Weave.jl/blob/9f664ba5a6d57d8bb9e1c3dd3106ad6d311e86a6/src/Weave.jl#L174

pfitzseb avatar Oct 21 '19 07:10 pfitzseb

It seems like this should be solved by using IJulia to work out where the jupyter executable is.

dpsanders avatar Feb 14 '20 03:02 dpsanders