Export Pluto notebooks to PDF automatically!
From the Julia REPL, PlutoPDF.jl can be installed with the following:
import Pkg; Pkg.add("PlutoPDF")
From within Julia:
import PlutoPDF
PlutoPDF.pluto_to_pdf("notebook.jl")
You can also use PlutoPDF to take screenshots of all notebook cells!
import PlutoPDF
pdf_path = "notebook.pdf"
screenshots_dir = "notebook_screenshots"
PlutoPDF.pluto_to_pdf("notebook.jl", pdf_path, screenshots_dir)
When developing, it's nice to have the node_modules
folder locally. Navigate to the node
directory and run npm install
.
If you don't have npm
, then run julia --project
and then
import PlutoPDF
PlutoPDF.build_node(joinpath(pwd(), "node"))