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 cannot install jupyter extension #487

Closed
JBlaschke opened this issue Apr 11, 2022 · 4 comments
Closed

WebIO cannot install jupyter extension #487

JBlaschke opened this issue Apr 11, 2022 · 4 comments

Comments

@JBlaschke
Copy link

The bug

I am trying to install the Jupyter Lab WebIO.jl extension:

using WebIO
WebIO.install_jupyter_labextension()

But I get the error:

The WebIO Jupyter extension must be installed using Python or Conda. See https://juliagizmos.github.io/WebIO.jl/latest/providers/ijulia/ for more information.

Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] _error()
   @ WebIO ~/.julia/packages/WebIO/VF9p5/deps/jupyter.jl:1
 [3] install_jupyter_labextension(; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
   @ WebIO ~/.julia/packages/WebIO/VF9p5/deps/jupyter.jl:9
 [4] install_jupyter_labextension()
   @ WebIO ~/.julia/packages/WebIO/VF9p5/deps/jupyter.jl:9
 [5] top-level scope
   @ In[1]:2
 [6] eval
   @ ./boot.jl:373 [inlined]
 [7] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base ./loading.jl:1196

The python3 -m pip install --upgrade webio_jupyter_extension command worked fine (and I restarted Jupyter before trying again):

$ jupyter nbextension list
Known nbextensions:
  config dir: /Users/blaschke/local/virtualenv/py3/etc/jupyter/nbconfig
    notebook section
      nbdime/index  enabled
      - Validating: OK
      webio-jupyter-nbextension/nbextension  enabled
      - Validating: OK
      jupyter-js-widgets/extension  enabled
      - Validating: OK
    tree section
      ipyparallel/main  enabled
      - Validating: OK
$ jupyter labextension list 
JupyterLab v3.2.9
/Users/blaschke/local/virtualenv/py3/share/jupyter/labextensions
        nbdime-jupyterlab v2.1.1 enabled OK
        webio-jupyterlab-provider v0.1.0 enabled OK (python, webio_jupyter_extension)
        ipyparallel-labextension v8.2.0 enabled OK (python, ipyparallel)
        @jupyter-widgets/jupyterlab-manager v3.0.1 enabled OK (python, jupyterlab_widgets)

Other labextensions (built into JupyterLab)
   app dir: /Users/blaschke/local/virtualenv/py3/share/jupyter/lab
$ jupyter serverextension list
config dir: /Users/blaschke/local/virtualenv/py3/etc/jupyter
    ipyparallel  enabled
    - Validating...
      ipyparallel 8.2.0 OK
    jupyterlab  enabled
    - Validating...
      jupyterlab 3.2.9 OK
    nbdime  enabled
    - Validating...
      nbdime 3.1.1 OK
    webio_jupyter_extension.serverextension  enabled
    - Validating...
      webio_jupyter_extension.serverextension  OK

This seems to be related to: #475 and #469 -- but thought I would give more info here.

Context

  • Pkg.status("WebIO")
Status `~/.julia/environments/v1.7/Project.toml`
[0f1e0344] WebIO v0.8.17
  • versioninfo():
Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.5.0)
  CPU: Intel(R) Core(TM) i7-8569U CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
@twavv
Copy link
Member

twavv commented Apr 12, 2022

The pip install is all you need to do to install WebIO.

@twavv twavv closed this as completed Apr 12, 2022
@JBlaschke
Copy link
Author

JBlaschke commented Apr 12, 2022

Can you advise on why WebIO is not working (i.e. the content is not being updated when I change an interactive WebIO element)

@JBlaschke
Copy link
Author

@travigd I did the pip install, but when I run:

using WebIO
WebIO.install_jupyter_labextension()

I still get the error:

The WebIO Jupyter extension must be installed using Python or Conda. See https://juliagizmos.github.io/WebIO.jl/latest/providers/ijulia/ for more information.

@ChiHaoLu
Copy link

ChiHaoLu commented Apr 2, 2023

The pip install is all you need to do to install WebIO.

If you want to answer this problem, give a clear instruction. Do not give a meaningless words and close the 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

3 participants