First I updated my global julia environment, resulting in the upgraded package list towards the left.
Then I opened the pluto notebook and it needed to recompile differential equations and Plots, propeably because the old versions where deinstalled when I updated the global environment. However ideally this shouldnt happen, so I updated the environment inside of the notebook as well. However, even though both environments are up to date, now the pluto environment still has the old version of Plots.jl. I dont understand why and I would like to avoid this.
Does anyone have an idea?
I believe this might have to do with the fact that Pluto.jl itself is a Julia package with dependencies that may be inhibiting updates. Try the following:
Activate the notebook environment:
import Pluto
Pluto.activate_notebook_environment("notebook.jl")
Check why the versions are not up-to-date:
] st -m --outdated
Pluto notebooks themselves don’t depend on Pluto, and are not constrained by its compat at all.
Thanks for clarifying it.
Oh I just saw that the package versions are indeed the same. Somehow I read it wrong and missread the line at the bottom Pkg 1.11 and Plots 1.41 and accidentally thought that Plots was out of date.
I learned something new though. Its cool, that you can activate the notebook environment.
To add some more info and links:
Isolated environment
Pluto creates a new, isolated environment for each notebook. This environment is never related to another environment (like your global environment).
Pre-installed versions are installed
It’s also possible that Pluto added an old version of a package to your notebook environment, if that version was installed before. This is to try to make notebooks launch faster (because pre-installed versions do not need to install again). More info in the Pluto docs
Update package versions
You can easily update the versions of packages used in the notebook using a button. More info in the Pluto docs

