Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@manipulate fails when opening Julia notebook in Jupyter #473

Open
flikkema opened this issue Nov 29, 2021 · 1 comment
Open

@manipulate fails when opening Julia notebook in Jupyter #473

flikkema opened this issue Nov 29, 2021 · 1 comment

Comments

@flikkema
Copy link

A fully-repeatable error: When you open a notebook with a slider and run the cell, the slider moves but the plot does not change.

Here is the Julia script:

using Plots, Interact

@manipulate for N in 10:1:20
x = 1:N; # x : Plotting data on x-axis
y = rand(N); # y : Plotting data on y-axis
plot(x, y) # To draw plot
end

However, this works fine when typed into a new notebook, or when cut/pasted from a saved notebook into a new notebook.

A possible hint is that the following message appears when you open the saved notebook:
This WebIO widget was rendered for a Jupyter kernel that is no longer running. Re-run this cell to regenerate this widget.

This message does not appear when you type anew or cut/paste and run.

A second possible hint is that a problem also occurs in Pluto:
WebIO not detected.
Please read the troubleshooting guide for more information on how to resolve this issue.
https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/

Package status appears OK:
(@v1.6) pkg> status
Status ~/.julia/environments/v1.6/Project.toml
[7073ff75] IJulia v1.23.2
[c601a237] Interact v0.10.4
[b964fa9f] LaTeXStrings v1.3.0
[f0f68f2c] PlotlyJS v0.18.8
[91a5bcdd] Plots v1.24.2
[c3e4b0f8] Pluto v0.17.2
[0f1e0344] WebIO v0.8.16

(@v1.6) pkg>

Finally, according to https://juliagizmos.github.io/WebIO.jl/latest/providers/ijulia/, locations are OK:
(base) cmp4165:~ pgf$ pip3 show jupyterlab | grep -i location
Location: /Users/pgf/opt/anaconda3/lib/python3.9/site-packages
(base) cmp4165:~ pgf$ pip3 show webio_jupyter_extension | grep -i location
Location: /Users/pgf/opt/anaconda3/lib/python3.9/site-packages

@flikkema
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant