Skip to content

Commit

Permalink
Update PkgUtils.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Mar 29, 2024
1 parent a5479a0 commit 056bf5f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/packages/PkgUtils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ function update_notebook_environment(path::String; kwargs...)
)
end

function has_notebook_environment(path::String)
load_notebook(path).nbpkg_ctx !== nothing
end
has_notebook_environment(path::String) = has_notebook_environment(load_notebook(path))
has_notebook_environment(notebook::Notebook) = notebook.nbpkg_ctx !== nothing

function activate_notebook_environment(path::String; show_help::Bool=true)
notebook_ref = Ref(load_notebook(path))
Expand Down

0 comments on commit 056bf5f

Please sign in to comment.