rodrigo-silveira
rodrigo-silveira

Reputation: 13088

Jupyter Notebook not rendering ipywidgets

Instead of rendering the actual widgets, it's just rendering text labels. See screenshot below.

import ipywidgets as widgets
from IPython.display import display

label = widgets.Label(value='Hello!')

display(label)
>>> Label(value='Hello!')

enter image description here

Edit

The above works for me on my local computer, but not on a server. Both are running Python 3.6, jupyter-core==4.6.3

Edit 2

In response to the question by @adhg, here's the output of widgets.InsSlider() (in his question, (s)he had a typo Ins instead of Int)

enter image description here

Upvotes: 1

Views: 9030

Answers (1)

rodrigo-silveira
rodrigo-silveira

Reputation: 13088

As mentioned on a related post:

With the new version of ipywidgets, I ran into this problem, but then I found on their github readme that you now need to follow

pip install ipywidgets

with

jupyter nbextension enable --py widgetsnbextension

Upvotes: 0

Related Questions