Skip to content

Commit

Permalink
Update to Julia 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffFessler committed Jun 20, 2020
1 parent 83c6b86 commit 360183f
Show file tree
Hide file tree
Showing 4 changed files with 211 additions and 28,388 deletions.
30 changes: 30 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Makefile
# convert .jl to .ipynb to .html

# key commands:
root = ~/.julia/conda/3/bin/
jt = $(root)/jupytext
jup = $(root)/jupyter
# --allow-errors
juprun = $(jup) nbconvert --execute \
--config=config/jupyter_nbconvert_config.py
juphtm = $(juprun) --to HTML

# https://nbconvert.readthedocs.io/
# https://nbconvert.readthedocs.io/en/latest/usage.html
# https://nbconvert.readthedocs.io/en/latest/execute_api.html?highlight=execute#module-nbconvert.preprocessors

jl := $(wildcard */*.jl)
ip := $(jl:%.jl=%.ipynb)
ht := $(jl:%.jl=%.html)


all: $(ip) $(ht)


$(ip): %.ipynb: %.jl
$(jt) --to notebook $? # -o $@


$(ht): %.html: %.ipynb
$(juphtm) $? # --output $@
3 changes: 3 additions & 0 deletions config/jupyter_nbconvert_config.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://community.dominodatalab.com/discussion/253/faq-preventing-jupyter-timeout-errors-when-running-notebooks-as-a-batch-scheduled-job

c.ExecutePreprocessor.timeout = 111

0 comments on commit 360183f

Please sign in to comment.