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

WebIO not detected. #236

Closed
tamasgal opened this issue Nov 30, 2018 · 18 comments
Closed

WebIO not detected. #236

tamasgal opened this issue Nov 30, 2018 · 18 comments

Comments

@tamasgal
Copy link

I recently filed an issue in Interact.jl (JuliaGizmos/Interact.jl#280) since I was not able to use it, but it's obviously an issue with WebIO.jl.

If I try to use it in Jupyter, I get the error WebIO not detected. and the deps/build.log is empty. I also tried to rebuild it but it gives no error whatsoever:

(v1.0) pkg> build WebIO
  Building WebIO → `~/.julia/packages/WebIO/NYISm/deps/build.log`

(v1.0) pkg>

Any ideas how to debug this? I am running Julia 1.0 and can't get it to work on macOS Mojave.

@Fruktus
Copy link

Fruktus commented Dec 11, 2018

Check if you have nbextensions installed in jupyter, this solved my problem with this issue

@truefalsename
Copy link

Hello, I am having the same problem when I try to plot using PlotlyJS. As an output I get "WebIO not detected.". I have nbextensions installed and WebIO is active

@truefalsename
Copy link

Update: I reinstalled WebIO after having installed nbextensions and I can now see the plots, however, whenever I open a notebook I see a warning saying that WebIO was loaded on an ad-hoc basis, despite the fact that the corresponding extension is active prior to loading the notebook.

Plots also appear buggy: i cannot rotate 3d plots at all for instance

@truefalsename
Copy link

another update:

PS C:\Users\lucam.jupyter> jupyter nbextension list
Known nbextensions:
config dir: C:\Users\lucam.jupyter\nbconfig
notebook section
webio/main enabled
- Validating: problems found:
- require? X webio/main
nbextensions_configurator/config_menu/main enabled
- Validating: problems found:
- require? X nbextensions_configurator/config_menu/main
contrib_nbextensions_help_item/main enabled
- Validating: ok
jupyter-js-widgets/extension enabled
- Validating: ok
tree section
nbextensions_configurator/tree_tab/main enabled
- Validating: problems found:
- require? X nbextensions_configurator/tree_tab/main
config dir: c:\program files\python37\etc\jupyter\nbconfig
notebook section
jupyter-js-widgets/extension enabled
- Validating: ok

@tamasgal
Copy link
Author

@Fruktus that was it thanks!

pip install jupyter_contrib_nbextensions

@truefalsename
Copy link

Hi, I tried a clean install of jupyter, installing the contrib_extensions too, but I have still problems:
PS C:\Users\lucam> jupyter nbextension list Known nbextensions: config dir: C:\Users\lucam\.jupyter\nbconfig notebook section webio/main enabled - Validating: problems found: - require? X webio/main jupyter-js-widgets/extension enabled - Validating: ok config dir: c:\users\lucam\appdata\local\programs\python\python37\etc\jupyter\nbconfig notebook section jupyter-js-widgets/extension enabled - Validating: ok
and when I launch a julia notebook I get
404 GET /nbextensions/webio/main.js?v=20181213142241 (::1) 10.00ms referer=http://localhost:8888/notebooks/Active%20projects/Gaia/Gaia_data_v2.ipynb [I 14:22:51.060 NotebookApp] Kernel started: 78e6e07f-5015-4ba6-9693-b921280b411a [W 14:22:51.372 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20181213142241 (::1) 1.99ms referer=http://localhost:8888/notebooks/Active%20projects/Gaia/Gaia_data_v2.ipynb
in general I can see plots in the notebook but they are extremely buggy, for instance I am not able to rotate 3d plots and annotations on hover get stuck to the first object

@twavv
Copy link
Member

twavv commented Dec 21, 2018

Hi, all, are y'all still having issues?

If so, try the latest on the webio-retool branch (should also be available as v0.6.2 very soon).

]add WebIO#webio-retool

I added a number of Jupyter notebook stability fixes.

@truefalsename
Copy link

Hey, thanks but unfortunately it didn't help: still get the same 404 I reported before and when I try to plot something it says that WebIO is not detected.

@shashi
Copy link
Member

shashi commented Dec 22, 2018

You might need to restart jupyter once you install or build WebIO... Did you try that @truefalsename?

@truefalsename
Copy link

I tried, didn't help. When I open a julia noebook I still get the same 404 as before and when I try to plot something via plotlyjs either I get "WebIO not detected" or I get a plot in a separate electron window (should have been in notebook) and the plot is super buggy. cannot rotate/interact with 3d plots and the navigation buttons do random things.

@twavv
Copy link
Member

twavv commented Dec 23, 2018

I think the issue is perhaps a false assumption about where nbextensions live in Windows.

I think the jupyter-nbextension command has some way to list the directory where extensions live. The build process should be updated to include that directory instead of hard coding the path.

@twavv
Copy link
Member

twavv commented Dec 28, 2018

Can you run jupyter --paths and see what it spits out?

@truefalsename
Copy link

Hello,
sure, sorry for the slow reply -- have been digesting.

Here is the output

config:
C:\Users\lucam.jupyter
c:\users\lucam\appdata\local\programs\python\python37\etc\jupyter
C:\ProgramData\jupyter
data:
C:\Users\lucam\AppData\Roaming\jupyter
c:\users\lucam\appdata\local\programs\python\python37\share\jupyter
C:\ProgramData\jupyter
runtime:
C:\Users\lucam\AppData\Roaming\jupyter\runtime

@twavv
Copy link
Member

twavv commented Mar 28, 2019

This should be fixed now that WebIO installs the extension to the correct OS-specific location (when using master -- the "latest" version, 0.7.0, should work regardless). If you have issues still, please let me know, but I'm closing this for now.

@twavv twavv closed this as completed Mar 28, 2019
@hhaensel
Copy link

For me it still doen't work.
I suppose, that
return joinpath(homedir(), "%APPDATA%", "jupyter")
in https://github.com/JuliaGizmos/WebIO.jl/blob/master/deps/build.jl#L64 should be replaced by
return joinpath("%APPDATA%", "jupyter")
(working on Windows 7; interestingly, in the address bar of the explorer window the output of joinpath(homedir(), "%APPDATA%", "jupyter") resolves fine, whereas it doesn't on the command line)

@sschuldenzucker
Copy link

Hi! I just spotted another incarnation of this issue on Windows 10.

I had the same problem (not working and "problems found" in jupyter nbextension list), but I found a folder at the literal (not further expanded) path: C:\Users\steff\%APPDATA%\jupyter\nbextensions\webio ("steff" is my user name; the folder is literally called "%APPDATA%").

It looks like expansion in

return joinpath("%APPDATA%", "jupyter")
is not working. That's the only place where %APPDATA% is used in the build script, at least.

I then copied the folder to the expanded path %APPDATA%\jupyter\nbextensions\webio (in my case that's C:\Users\steff\AppData\Roaming\jupyter\nbextensions) and since then everything works perfectly.

@pfitzseb
Copy link
Member

That %APPDATA% issue will be fixed with #286.

@twavv
Copy link
Member

twavv commented May 25, 2019

That PR has been merged.

If you're still having issues (on Windows), please build WebIO again (feel free to delete the extraneous %APPDATA% directory that we accidentally created). If you're still having issues, please open a new issue.

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

8 participants