[go: nahoru, domu]

Skip to content

Commit

Permalink
Use Julia v1.6 in nbconvert
Browse files Browse the repository at this point in the history
  • Loading branch information
david-pl committed Jan 25, 2021
1 parent 19733fb commit e4f4765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ names = filter(name->endswith(name, ".ipynb"), readdir(sourcedir))

function convert2source(name)
sourcepath = joinpath(sourcedir, name)
run(`jupyter-nbconvert --to=script --ExecutePreprocessor.kernel_name=julia-1.4 --ExecutePreprocessor.timeout=200 --output-dir=$juliadir $sourcepath`)
run(`jupyter-nbconvert --to=script --ExecutePreprocessor.kernel_name=julia-1.6 --ExecutePreprocessor.timeout=200 --output-dir=$juliadir $sourcepath`)
end

function convert2markdown(name)
sourcepath = joinpath(sourcedir, name)
run(`jupyter-nbconvert --to markdown --ExecutePreprocessor.kernel_name=julia-1.4 --ExecutePreprocessor.timeout=200 --output-dir=$markdowndir --template=markdown_template.tpl --execute $sourcepath `)
run(`jupyter-nbconvert --to markdown --ExecutePreprocessor.kernel_name=julia-1.6 --ExecutePreprocessor.timeout=200 --output-dir=$markdowndir --template=markdown_template.tpl --execute $sourcepath `)
end

for name in names
Expand Down

0 comments on commit e4f4765

Please sign in to comment.