Closed agarie closed 4 years ago
Did you restart Jupyter server and open a new notebook and try?
@shashi Yes. I reproduced this issue with a new notebook (after restarting the Jupyter server) in which the only content were the cells containing the code shown on my initial post.
I encountered a possibly similar issue.
First of all, I noticed that the library worked when I ran it on my local machine. The trouble started when I tried to use Interact.jl
on my server's jupyter notebook server. There I have a jupyter server behind an nginx reverse proxy on /jupyter
. Similarly to agarie's issue, buttons and sliders just wouldn't show up.
In my browser's devtools I noticed that several requests return 404, e.g. for http://{server}/assetserver/86a580a22f01186f16f4a4ebde37669899bd7bbd-knockout.js
. This makes sense as nginx is not serving anything on /assetserver
, and it should be /jupyter/assetserver[...]
.
I don't know if it is possible to configure this somewhere, or if the c.NotebookApp.base_url
from jupyter's config can be used.
I haven't looked too far into this, however I suspect that this problem might actually a WebIO.jl
problem.
For now I have added the following temporary fix into my nginx config:
server {
rewrite ^/assetserver/(.*) /jupyter/assetserver/$1 break;
[...]
}
I encountered the exact same issue, I haven't solved it fully yet, but it seems related to (automatically) rendering WebIO nodes. When I explicitly import WebIO, I can make it show the slider:
However, this doesn't solve all my Interact issues. observe(s)
doesnt seem to work, @manipulate
doesn't work either for me
Ok I see now that my Interact and InteractBase builds are failing. It fails to download the css for Interact:
Interact issue 333 seems related. Also I'm now reading Julia Discourse: Problem with curl.exe
Ok fixed it by getting the builds working. I followed the solution from the [discourse post] to get curl.exe working (https://discourse.julialang.org/t/problem-with-curl-exe-windows-and-package-installation/29525/53):
Now the tutorial works directly:
Ok fixed it by getting the builds working. I followed the solution from the [discourse post] to get curl.exe working (https://discourse.julialang.org/t/problem-with-curl-exe-windows-and-package-installation/29525/53):
1. Open a command prompt, and type echo %APPDATA% to get the personal app data folder. 2. Create an empty file called _curlrc in the app data folder. 3. Write insecure on that file and save. 4. import Pkg; Pkg.build("Interact")
I did the same thing on macOS by creating a .curlrc
on $HOME
with insecure
written on it then rebuilding Interact. It worked as well. Please remember to delete that .curlrc
after that, tho. :P
I'm closing this issue now.
Hi! I'm just getting started with Interact, so I'm sorry if this issue is due to my inexperience with the Julia ecosystem.
I have a notebook with the following code:
resulting in the following:
I'm on macOS 10.15.6 with Julia 1.5 installed with Homebrew. I installed the nbextension as instructed in the README as well. My configurations is:
What could be causing this? Do you have any suggestion as to what I could do to debug this? I'll be happy to give any more information if necessary.