Skip to content

Commit

Permalink
Update saving and loading.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd authored Oct 23, 2024
1 parent b34e0e1 commit aab9739
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/notebook/saving and loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ function save_notebook(io::IO, notebook::Notebook)
# Super Advanced Code Analysis™ to add the @bind macro to the saved file if it's used somewhere.
if any(!must_be_commented_in_file(c) && occursin("@bind", c.code) for c in notebook.cells)
println(io, "")
println(io, "#! format: off")
println(io, "# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).")
println(io, PlutoRunner.fake_bind)
println(io, "#! format: on")
end
println(io)

Expand Down

0 comments on commit aab9739

Please sign in to comment.