@@ -32,10 +32,14 @@ Base.@kwdef mutable struct Notebook
3232 " Cells are ordered in a `Notebook`, and this order can be changed by the user. Cells will always have a constant UUID."
3333 cells_dict:: Dict{UUID,Cell}
3434 cell_order:: Vector{UUID}
35+ # cells::Vector{Cell} – you can also use the `.cells` property to get all cells as a vector. This is defined later using a `Base.getproperty` method.
3536
3637 path:: String
3738 notebook_id:: UUID = uuid1 ()
39+ # the reactivity information of this notebook
3840 topology:: NotebookTopology
41+
42+ # caches used to speed up some operations
3943 _cached_topological_order:: TopologicalOrder
4044 _cached_cell_dependencies:: Dict{UUID,Dict{String,Any}} = Dict {UUID,Dict{String,Any}} ()
4145 _cached_cell_dependencies_source:: Union{Nothing,NotebookTopology} = nothing
@@ -50,8 +54,9 @@ Base.@kwdef mutable struct Notebook
5054 # per notebook compiler options
5155 # nothing means to use global session compiler options
5256 compiler_options:: Union{Nothing,Configuration.CompilerOptions} = nothing
53- nbpkg_ctx:: Union{Nothing,PkgContext} = nothing
54- # nbpkg_ctx::Union{Nothing,PkgContext}=PkgCompat.create_empty_ctx()
57+
58+ # package environment management
59+ nbpkg_ctx:: Union{Nothing,PkgContext} = nothing # nothing means that the notebook is not (yet) using Pluto's automatic package manager.
5560 nbpkg_ctx_instantiated:: Bool = false
5661 nbpkg_restart_recommended_msg:: Union{Nothing,String} = nothing
5762 nbpkg_restart_required_msg:: Union{Nothing,String} = nothing
0 commit comments