We support this already of course!

julia notebook.jl

(from my chat with @marketneutral)

He told me that they often use Jupyter notebooks in production, there are tools (papermill) to run jup nbs as scripts, with the extra feature that you can set some parameters inside the running notebook. For example, you can set path_to_dataset as parameter, and run the notebook on different datasets from the command line.

This is in similar territory as the importing-notebooks-with-replacements. Maybe it could use the same mechanism, but you call it directly:

julia -e "import Pluto.PlutoRunner; Pluto.PlutoRunner.import_with_replacements()"

we could provide a small script that turns command line arguments into that

Julia has a thing for that

The evalfile function (similar to include) can be given a sequence of arguments (strings), they will be assigned to the global ARGS object.

JuliaLang/julia

Output

Another nice thing is to save HTML output as a means of logging. This is cool in general: a command line tool to run Pluto notebooks and get the HTML document