fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.91k stars 284 forks source link

Package manager gets confused with deactivated cell #2930

Open roflmaostc opened 4 weeks ago

roflmaostc commented 4 weeks ago

Hi,

I would like to have a cell, where I can activate my local environment or deactivate it. For that, I simply deactivate the corresponding cell but it seems like Pluto gets confused by this deactivated cell. With a manual re-triggering the package loading seems to work but it shows "Restart notebook". But after restart the same procedure starts again.

Best,

Felix

https://github.com/fonsp/Pluto.jl/assets/19436526/f84045b6-224b-42c5-92c8-39fd2ca90296

Versions:


julia> versioninfo()
Julia Version 1.10.3
Commit 0b4590a5507 (2024-04-30 10:59 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 24 × AMD Ryzen 9 5900X 12-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 24 default, 0 interactive, 12 GC (on 24 virtual cores)
Environment:
  JULIA_NUM_THREADS = 24

(@v1.10) pkg> st
  [c3e4b0f8] Pluto v0.19.42
``
fonsp commented 4 weeks ago

Can you share a MWE notebook file where this happens? I tried it with one package but it does not cause the issue

image
roflmaostc commented 4 weeks ago

This one triggers it for me

### A Pluto.jl notebook ###
# v0.19.42

using Markdown
using InteractiveUtils

# ╔═╡ df1618bb-fb2b-4f34-957f-852c28003fd6
using IndexFunArrays

# ╔═╡ 38eeaebc-21b0-11ef-2b85-93df87b8f158
# ╠═╡ disabled = true
#=╠═╡
begin
        using Pkg
        Pkg.activate("/tmp/lel2")
        Pkg.instantiate
end
  ╠═╡ =#

# ╔═╡ Cell order:
# ╠═38eeaebc-21b0-11ef-2b85-93df87b8f158
# ╠═df1618bb-fb2b-4f34-957f-852c28003fd6