Perhaps reopening #1981 but couldn't open widgets in jupyterlab after using your example:
import ipywidgets as widgets
out=widgets.Dropdown(
options=['1', '2', '3'],
value='2',
description='Number:',
disabled=False,
)
display (out)
The output is the object rather than widget:
Dropdown(description='Number:', index=1, options=('1', '2', '3'), value='2')
The same result running in a console (Spyder) though it worked fine in a jupyter notebook.
I tried with: from IPython.display import display but got the same result.
Seems like some issue with Java Script on my lab but Plotly works well.
Any other ideas I should try?
The same result running in a console (Spyder)
Spyder doesn't support ipywidgets, IIRC.
It seems that the jupyter widgets lab extension is not installed or not working. What does jupyter labextension list print?
JupyterLab v0.32.1
No installed extensions
You'll need to install the ipywidgets jupyterlab extension, then: http://ipywidgets.readthedocs.io/en/latest/user_install.html#installing-the-jupyterlab-extension
Got stuck in resolving pacakges with this file:
@jupyter-widgets/jupyterlab-manager@file:../extensions/jupyter-widgets-jupyterlab-manager-0.35.0.tgz
I installed nodejs and ran jupyter lab clean
I installed nodejs and ran jupyter lab clean
So does it work now after you did that?
No
There is an issue of lab build hanging with node 10, maybe this is what you are experiencing?
And how can I check if this is the issue?
node --version
If it is 10, try to install v8 and see if that fixes it (you'll have to google that one, since the best way to do it depends on your local setup).
I did not find node 8 and would rather keep the latest version. I can use the widgest on jyputer and hope that that this issue with node 10 or other issue will be sorted out.
Thanks for trying to help, Rony
See the jlab issue for supporting node 10: https://github.com/jupyterlab/jupyterlab/issues/4585
I installed yarn 1.7.0 but widgets still not appearing.
JLab distributes it's own version of yarn, which it uses exclusively, so
installing a newer version won't help. There is a pr to upgrade jlab's yarn.
On Fri, May 25, 2018, 01:10 Rony Armon notifications@github.com wrote:
I installed yarn 1.7.0 but widgets still not appearing.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jupyter-widgets/ipywidgets/issues/2083#issuecomment-391976674,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALwZnSDKOF5d6B6jQs_5cdusm5ZnbH1ks5t17yPgaJpZM4UGxIY
.
Install nodeJS (yep, the docs explicitly mentioned that). So for me what worked was:
PS: The latest lab supports node 10 now 👍
They work for me as well on Jupyterlab, thanks
Most helpful comment
Install nodeJS (yep, the docs explicitly mentioned that). So for me what worked was:
5 (may need to restart your lab)