-
Notifications
You must be signed in to change notification settings - Fork 947
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
ipywidgets not showing GUI #2220
Comments
From your log you posted on jupyterlab/jupyterlab#3925 (comment), it seems that jupyterlab isn't building in the widgets extension. You should see a line that looks something like:
So somehow that extension is not getting recognized as being installed. If you do |
It looks like, from your screenshot, the app dir is |
Your npm version looks very old. I also have node 8.11.2, but npm version 5.6.0. Perhaps upgrading npm might help? |
according to https://nodejs.org/en/download/releases/, your npm version (3.5.2) was distributed with node 5 or so. |
Does |
@Gabrielvon - the next thing I would do if I were you would be to look for: (a) javascript browser errors now that it looks like widgets is building in the bundle @pakdev - I'd probably do the same for your situation to try to narrow down the issue. The key here is to find out if the widget javascript is making it to the browser. |
If either of you is using conda or pipenv, if you could try making instructions to create a clean environment so I could reproduce the issue, that would also help tremendously. |
This should reproduce the issue:
import ipywidgets
out = ipywidgets.Dropdown(options=['1', '2', '3'], value='2', description='Number')
display(out) |
I left for holidays and found that the @jasongrout , refer to your instructions, I cannot see the js browser errors and browser js debugger, since it is a system without any interfaces but only text and command. I enter the ipython notebook environment by clicking certain buttons. In another word, I am assigned a jupyter notebook environment and that is my main entrance for the system. If you want to investigate further, could you tell me what command should I input? |
I believe I'm having the same problem. I'm running the latest development version of jupyterlab in Chrome on Ubuntu 18.04. When I run the following code, instead of the widget appearing, I get a string description of the widget:
I looked in the console, and it turns out that upon executing the third line, I get these two errors:
I have refreshed my fork with the latest commits from the main repo, and I have run @jasongrout I hope this helps diagnose the problem. |
I'm also getting this error in Amazon Sagemaker. Here's what the console looks like:
|
I am having a similar Issue too. lab version = 0.35.4 |
Hi, I have been through this problem every time I reinstall my virtual ubuntu which is managed by my IT colleagues. After a few research according to my limited knowledge in this area, I figured out the following command lines that may helps likely, though I don't really understand some of the tools. I don't know if this helps, any guidance to improve these command (such as remove unnecessary lines) are appreciate.
Remember to refresh your page in the browser. |
@jasongrout's suggestion to run |
Hi @jasongrout, I have been having a similar issue with ipywidget's interact widget doesn't appear in Jupyterlab even after following the suggestions as well as the official doc. Please see this screencast of JS console error messages.
(base) I created a new environment to test conda create -n test
conda activate test
#pip install ipywidget which generated this message. Not sure if this is sensible # so I tried below and new libraries were installed
conda install -c conda-forge ipywidgets
conda install -c conda-forge ipykernel #to be able to choose this environment in lab gui Result: (test) hayley:~/Playground/ContextNet$ conda list | grep ipywidget
ipywidgets 7.5.1 py_0 conda-forge
(test) hayley:~/Playground/ContextNet$ conda list | grep wid
ipywidgets 7.5.1 py_0 conda-forge
wcwidth 0.1.7 py_1 conda-forge
widgetsnbextension 3.5.1 py37_0 conda-forge Please let me know if you have any suggestions to resolve this. Thank you. update: Could you suggest what is a safe way to resolve this inconsistency..? Thank you! |
Looks like you don't have the ipywidgets jupyterlab extension installed: https://ipywidgets.readthedocs.io/en/latest/user_install.html#installing-the-jupyterlab-extension (You can check this with |
Thank you, I should've checked the list carefully. That solved the issue. |
Hi, I still got the issue after I ran
jupyter labextension install @jupyter-widgets/jupyterlab-manager
.Initially, I came across some problems using
tqdm_notebook
injupyterlab
. After googling the problems, someone say it may be something wrong withipywidgets
. They basically suggest that runningjupyter labextension install @jupyter-widgets/jupyterlab-manager
. So I did, but it doesn't work either fortqdm_notebook
oripywidgets
. The following pic may present my problems.The text was updated successfully, but these errors were encountered: