Slicing a SparseAxisArray Variable in JuMP

Now I realized that I can reproduce the example in the Julia shell, but not in a notebook (IJulia)… does that make any sense?

No. It means you are running a different version of JuMP in the notebook. When did you update your packages? Have you restarted the notebook since?

Can you show the full output of Pkg.status() from a cell in the notebook?