Hi Thach,

I have the same problem with ipywidgets. I install python3 on my Ubuntu 
linux (using openstack).
I also reinstall ipywidgets for python3 to use on jupyterhub as you 
mentioned, but the ipywidgets still doesn't work correctly. Any other 
suggestions?

Thanks.

On Thursday, January 7, 2016 at 8:43:37 PM UTC-6, Thach Nguyen wrote:
>
> Thank you Joris for the suggestion. After installing ipywidgets to 
> python3, interactive widgets work perfectly with Hub.
> Thach
>
>
> On Fri, Jan 8, 2016 at 9:29 AM, Joris Van den Bossche <
> [email protected] <javascript:>> wrote:
>
>> Possible reason is that you have ipywidgets installed in the python 
>> environment that the kernel of the notebook runs, but not in the (python 3) 
>> env in which jupyterhub runs.
>> See https://github.com/ipython/ipywidgets/issues/148. It is a quite 
>> annoying issue, as it is not directly clear why the interact fails (as 
>> ipywidgets imports just fine).
>>
>> Regards,
>> Joris
>>
>> 2016-01-07 23:23 GMT+01:00 Thach Nguyen <[email protected] 
>> <javascript:>>:
>>
>>> Hi MinRK,
>>>
>>> Here is the output of pip list:
>>>
>>> alabaster (0.7.3)
>>> apptools (4.2.1)
>>> Babel (1.3)
>>> backports-abc (0.4)
>>> backports.ssl-match-hostname (3.4.0.2)
>>> configobj (5.0.6)
>>> Cython (0.20)
>>> decorator (4.0.6)
>>> descartes (1.0.1)
>>> docutils (0.12)
>>> enum34 (1.0.4)
>>> envisage (4.4.0)
>>> h5py (2.3.1)
>>> ipykernel (4.1.1)
>>> ipython (4.0.1)
>>> ipython-genutils (0.1.0)
>>> ipywidgets (4.1.0)
>>> jedi (0.9.0)
>>> Jinja2 (2.8)
>>> jsonschema (2.4.0)
>>> jupyter-client (4.1.1)
>>> jupyter-core (4.0.6)
>>> MarkupSafe (0.23)
>>> matplotlib (1.4.3)
>>> mayavi (4.4.0)
>>> mistune (0.7.1)
>>> nbconvert (4.1.0)
>>> nbformat (4.0.1)
>>> notebook (4.0.6)
>>> numpy (1.9.3)
>>> path.py (0.0.0)
>>> pep8 (1.6.2)
>>> pexpect (3.3)
>>> pickleshare (0.5)
>>> Pillow (2.7.0)
>>> pip (7.1.2)
>>> psutil (3.2.0)
>>> ptyprocess (0.5)
>>> pyface (4.4.0)
>>> pyflakes (0.9.2)
>>> Pygments (2.0.2)
>>> pyparsing (2.0.3)
>>> PySide (1.2.1)
>>> python-dateutil (2.4.2)
>>> pytz (2015.7)
>>> pyzmq (15.1.0)
>>> qtconsole (4.0.1)
>>> rope (0.9.4)
>>> scipy (0.14.0)
>>> setuptools (19.1.1)
>>> Shapely (1.5.11)
>>> simplegeneric (0.8.1)
>>> singledispatch (3.4.0.3)
>>> six (1.10.0)
>>> snowballstemmer (1.2.0)
>>> spectral-toolbox-flow (3.0.1.dev2)
>>> Sphinx (1.3.1)
>>> sphinx-rtd-theme (0.1.7)
>>> spyder (2.3.6)
>>> terminado (0.5)
>>> tornado (4.3)
>>> traitlets (4.0.0)
>>> traits (4.4.0)
>>> traitsui (4.4.0)
>>> VTK (5.10.1)
>>> wheel (0.26.0)
>>> wxPython (3.0.0.0)
>>> wxPython-common (3.0.0.0)
>>>
>>> and pip3 list:
>>>
>>> apturl (0.5.2ubuntu4)
>>> backports-abc (0.4)
>>> Brlapi (0.6.1)
>>> chardet (2.2.1)
>>> checkbox-ng (0.3)
>>> checkbox-support (0.2)
>>> colorama (0.2.5)
>>> command-not-found (0.3)
>>> decorator (4.0.6)
>>> defer (1.0.6)
>>> feedparser (5.1.3)
>>> friends (0.1)
>>> html5lib (0.999)
>>> httplib2 (0.8)
>>> ipykernel (4.2.1)
>>> ipython (4.0.1)
>>> ipython-genutils (0.1.0)
>>> Jinja2 (2.8)
>>> jsonschema (2.5.1)
>>> jupyter-client (4.1.1)
>>> jupyter-core (4.0.6)
>>> jupyterhub (0.3.0)
>>> language-selector (0.1)
>>> louis (2.5.3)
>>> lxml (3.3.3)
>>> Mako (0.9.1)
>>> MarkupSafe (0.18)
>>> mistune (0.7.1)
>>> nbconvert (4.1.0)
>>> nbformat (4.0.1)
>>> notebook (4.0.6)
>>> oauthlib (0.6.1)
>>> onboard (1.0.0)
>>> oneconf (0.3.7.14.04.1)
>>> pamela (0.2.1)
>>> path.py (8.1.2)
>>> pexpect (4.0.1)
>>> pickleshare (0.5)
>>> pip (1.5.4)
>>> piston-mini-client (0.7.5)
>>> plainbox (0.5.3)
>>> ptyprocess (0.5)
>>> pycrypto (2.6.1)
>>> pycurl (7.19.3)
>>> pyflakes (0.8.1)
>>> Pygments (2.0.2)
>>> pygobject (3.12.0)
>>> pyparsing (2.0.1)
>>> python-apt (0.9.3.5ubuntu1)
>>> python-debian (0.1.21-nmu2ubuntu2)
>>> pyxdg (0.25)
>>> pyzmq (15.1.0)
>>> requests (2.2.1)
>>> screen-resolution-extra (0.0.0)
>>> setuptools (3.3)
>>> simplegeneric (0.8.1)
>>> six (1.5.2)
>>> software-center-aptd-plugins (0.0.0)
>>> SQLAlchemy (1.0.10)
>>> terminado (0.5)
>>> tornado (4.3)
>>> traitlets (4.0.0)
>>> ubuntu-drivers-common (0.0.0)
>>> ufw (0.34-rc-0ubuntu2)
>>> unattended-upgrades (0.1)
>>> unity-scope-audacious (0.1)
>>> unity-scope-calculator (0.1)
>>> unity-scope-chromiumbookmarks (0.1)
>>> unity-scope-clementine (0.1)
>>> unity-scope-colourlovers (0.1)
>>> unity-scope-devhelp (0.1)
>>> unity-scope-firefoxbookmarks (0.1)
>>> unity-scope-gdrive (0.7)
>>> unity-scope-gmusicbrowser (0.1)
>>> unity-scope-gourmet (0.1)
>>> unity-scope-guayadeque (0.1)
>>> unity-scope-manpages (0.1)
>>> unity-scope-musique (0.1)
>>> unity-scope-openclipart (0.1)
>>> unity-scope-texdoc (0.1)
>>> unity-scope-tomboy (0.1)
>>> unity-scope-virtualbox (0.1)
>>> unity-scope-yelp (0.1)
>>> unity-scope-zotero (0.1)
>>> urllib3 (1.7.1)
>>> usb-creator (0.2.23)
>>> wheel (0.24.0)
>>> xdiagnose (3.6.3build2)
>>> xkit (0.0.0)
>>>
>>> Thanks,
>>> Thach
>>>
>>>
>>> On Thursday, January 7, 2016 at 11:33:23 PM UTC+11, Min RK wrote:
>>>>
>>>> Widgets should work fine with JupyterHub, since the Hub changes nothing 
>>>> about how single-user servers work in this regard. Can you share what 
>>>> version of everything you are using (pip list or conda list)?
>>>>
>>>> -MinRK
>>>> ​
>>>>
>>>> On Thu, Jan 7, 2016 at 6:55 AM, Thach Nguyen <[email protected]> 
>>>> wrote:
>>>>
>>>>> Hi list,
>>>>> I have jupyterhub installed and running. Everything seems to work 
>>>>> correctly except ipywidgets interactive widgets are not shown when 
>>>>> running 
>>>>> an ipython notebook from jupyterhub. With the same notebook, the 
>>>>> interactive widgets are displayed correctly when not running from 
>>>>> jupyterhub.
>>>>> Is that an expected behaviour or is there something wrong with my 
>>>>> jupyter/jupyterhub setup?
>>>>> Thanks,
>>>>> Thach
>>>>>
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google 
>>>>> Groups "Project Jupyter" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/jupyter/CAGngho%3D7ea0NXMKMmUxaw2SDK%2B_C_%2BfObj1Fr1cqiF4mCW%3Dmmw%40mail.gmail.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/jupyter/CAGngho%3D7ea0NXMKMmUxaw2SDK%2B_C_%2BfObj1Fr1cqiF4mCW%3Dmmw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Project Jupyter" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> To post to this group, send email to [email protected] 
>>> <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jupyter/16479e5d-5b43-4dd7-9177-04cb49721256%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/jupyter/16479e5d-5b43-4dd7-9177-04cb49721256%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Project Jupyter" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/jupyter/n-GI5uNuHNU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/jupyter/CALQtMBYY8JfoiCF481ULn1yZxd6nxKTh6OqiHRxXUsoALY_dOQ%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/jupyter/CALQtMBYY8JfoiCF481ULn1yZxd6nxKTh6OqiHRxXUsoALY_dOQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/b5ed3a88-e007-4932-8dce-edc2ff50c982%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to