All tutorials use a common Project.toml/Manifest.toml pair, located at the root level.
IMPORTANT Always ensure the version of Julia used to generate this pair matches what
is declared in /FIRST_STEPS.md
. This needs to match JULIA_VERSION
defined in
src/HelloJulia.jl.
There are three kinds of notebooks generated from a basic Literate.jl
compatible script maintained by the developer, called notebook.jl
,
in each of the sub-folders of /notebooks
:
notebook.ipynb
: A pre-executed Juptyer notebooknotebook.unexectuted.pynb
: An unexecuted Juptyer notebooknotebook.pluto.ipynb
: A Pluto notebook
Note that you must not recycle variable names or the Pluto notebook generated won't run properly.
To generate notebooks do include(/src/generate_all.jl)
. For some
tutorials, a notebook may not be generated, because of some known
issue. A warning will be issued and you'll need to generate the
relevant notebook by hand. (At time of writing a pre-executed Jupiter
notebook needs to be generated for
notebooks/01_getting_started/
. After generating the notebooks, copy
notebook.unexecuted.ipynb
to notebook.ipynb
; execute the latter
file and save.)
To generate notebooks for just one tutorial, include
the file called
generate.jl
within the notebook's folder.
To add to what is pre-compiled in the system image generated by
setup()
, modify the file /precompile/warmup.jl
.
This can be updated by editing src/notebooks.jl
(you shouldn't need
to touch /notebooks/pluto_index.jl
).