JuliaGizmos / Interact.jl

Interactive widgets to play with your Julia code
Other
522 stars 77 forks source link

Interact does not show widgets in IJulia #413

Open johnfgibson opened 2 years ago

johnfgibson commented 2 years ago

When I run

using Interact

s = slider(0:.1:1,label="Slider X:")

display(observe(s))

within a Julia jupyter notebook, the output is 0.5, with no slider shown. Similarly with using Colors; map(x -> RGB(x, 0.5, 0.5), observe(s)). I get a grey square but no slider. I'm using

julia> Pkg.status(["Interact"; "WebIO"; "IJulia"])
      Status `~/.julia/environments/v1.7/Project.toml`
  [7073ff75] IJulia v1.23.2
  [c601a237] Interact v0.10.4
  [0f1e0344] WebIO v0.8.16

julia> versioninfo()
Julia Version 1.7.0
Commit 3bf9d17731 (2021-11-30 12:12 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-3960X CPU @ 3.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, sandybridge)

I'm using the OS jupyter executable on openSUSE Linux Tumbleweed, jupyter version 4.6.3, and starting my julia notebooks from the Julia prompt with "using IJulia; notebook(dir=pwd())``.

Interactive was working for me well under julia-1.6, but since installing julia-1.7.0, updating packages, and re-debugging the whole Interactive-WebIO-Jupyter with the WebIO Troubleshooting Tips, I get this null behavior.

xgdgsc commented 2 years ago
[Error: Fetch error: 404 Not Found
    at http://localhost:8888/lab/extensions/webio-jupyterlab-prov…]
0: Error: Fetch error: 404 Not Found at http://localhost:8888/lab/extensions/webio-jupyterlab-provider/static/dist_labextension_js.427f6e3abbcd6b9d9bce.js:204:26436 at async Promise.all (index 0)
length: 1

is shown in chrome console when the slider are not shown for me.

xgdgsc commented 2 years ago

After a total Pkg.update the widget appears but sliding has no effect.