Slider does not show after upgrade Jupyter

(I posted the query on the Jupyter forum, and was suggested that the issue might lie with Interact.jl . Therefore, I’m bringing the question here for further insights.)

I’ve been using Julia in Jupyter Notebook (NB) to make interactive plots with Interact.jl. It worked well until I upgraded Jupyter, and then the slider disappeared without any error messages.

Before the upgrade:

  • NB version 6 (6.4.12) worked fine.
  • Lab version 3 (3.4.4) had issues with the slider not updating graphs, but I didn’t mind since NB was okay.

After the upgrade:

  • NB version 7 (7.1.2) and Lab version 4 (4.1.5) both failed to show the slider, with no errors.
  • Downgrading to NB 6.4.12 fixed the issue for NB.
  • The current version of nbclassic also works.

However, downgrading isn’t a long-term fix and the nbclassic is a transitional product. So I’m looking for solutions for both NB (preferably) or Lab.

Someone from the Jupyter forum suggested that the issue may lie with the Interact.jl.

The problem’s MWE:

using Interact, Plots

@manipulate for n in 1:5:100
  plot(rand(n))
end

I’m on Windows 10 and 11, using ipywidgets 8.1.2 and Julia 1.10.2. I installed the widgets with:

  • conda install -n base -c conda-forge widgetsnbextension
  • conda install -n base -c conda-forge ipywidgets
  • jupyter nbextension install --py widgetsnbextension
  • jupyter nbextension enable --py widgetsnbextension

I’d appreciate any alternative solutions or fixes.

1 Like

Hi,

I am bumping this thread (not sure if it’s allowed).

I am also trying to make Interact work in Jupyter Lab. Given this issue is still on, I assume it is still broken ?

Is there any chance it will be fixed at some point ?
Also, is there a way to make it work meanwhile ? Perhaps by downgrading ?

Thanks,

1 Like

I can confirm that downgrading the notebook provides a temporary solution:

pip install notebook==6.4.12

However, as mentioned in my original post, this is not a long-term fix. It’s disheartening because Julia is such a great tool for teaching, with its intuitive syntax and other benefits. Interactive plots significantly enhance its teaching value, and losing this feature would be a major drawback for Julia in the classroom.

I’m hitting this problem with a collaborator. I have an older jupyter/jupyterlab installed by Conda.jl some time ago, but when he does install he gets new shiny and broken jupyterlab.

Is there a way to ask Conda.jl to downgrade jupyterlab to 3.x.x so this works?