-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
19 lines (15 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
parallel-R.md: parallel-R.Rmd
Rscript -e "rmarkdown::render('parallel-R.Rmd', rmarkdown::md_document(preserve_yaml = TRUE, variant = 'gfm', pandoc_args = '--markdown-headings=atx'))" ## atx headers ensures headers are all like #, ##, etc. Shouldn't be necessary as of pandoc >= 2.11.2
## 'gfm' ensures that the 'r' tag is put on chunks, so code coloring/highlighting will be done when html is produced.
parallel-python.md: parallel-python.qmd
quarto render parallel-python.qmd --to md
# For GPU-based jax, I am currently using jax-test mamba env
parallel-julia.md: parallel-julia.qmd
quarto render parallel-julia.qmd --to md
## To render Julia, need to specify Jupyter kernel (currently `julia-1.8`). Also need to have IJulia installed for the user doing the rendering.
## Before running `make parallel-julia.md`, do:
## source activate jupyterhub-4.0
## Previously using a kernel that hard-codes in 4 threads (`-t 4`) to do parallel stuff, but since set number of threads in code not sure why doing that.
## Rendering occasionally/non-reproducibly fails with inscrutable error messages.
clean:
rm -f parallel-R.md