ipython-books / cookbook-code

[DEPRECATED] See the new edition:
http://ipython-books.github.io/
Other
974 stars 454 forks source link

Change in widgets in IPython 3.0 #20

Open rossant opened 9 years ago

rossant commented 9 years ago

As reported by one user:

Page: 19 & 20

In the example that begins:

"10. Now, we illustrate the latest interactive features in IPython 2.0+, namely JavaScript widgets."

I had to change the world 'values' to 'options' in

dw = DropdownWidget(values=OrderedDict([

and

dw.value = dw.values['SciPy 2013'].

Using IPython 3.1.0, Python 2.7.9.

deannariddlespur commented 8 years ago

Wow thanks, i was beginning to think I just could not understand plain thinking lol