If you have a course with Pluto notebooks and you would like to ship it with custom sysimages, use this package as shown in the demo or in MLCourse.
The students, who study the notebooks in the Demo
project, will be able to create a custom sysimage with
using Demo
Demo.create_sysimage()
and use the custom sysimage with
using Demo
Demo.start()
- Add this package to your project
pkg> add https://github.com/jbrea/PrecompilePlutoCourse.jl#main
-
Create and customize a
warmup.jl
file. See Demo/precompile/warmup.jl for a minimal example or this customized warmup file. Thewarmup.jl
file will be passed to theprecompile_execution_file
argument of the PackageCompiler. -
Configure
PrecompilePlutoCourse
in the__init__()
function of your package as e.g. in Demo/src/Demo.jl or here.