TwistedHardware / mltutorial

Machine Learning Tutorial in IPython Notebooks
https://www.youtube.com/user/roshanRush
GNU General Public License v2.0
130 stars 151 forks source link

Widgets are not IPython 3 compatible #2

Open flutefreak7 opened 8 years ago

flutefreak7 commented 8 years ago

I found your IPython tutorials very helpful, but I had to convert them to IPython 3 format to get the notebooks to work.

Here is the guide for converting to IPython 3 style widgets: https://ipython.org/ipython-doc/3/whatsnew/version3_widget_migration.html

For the most part it makes the code look better (css properties are now direct attributes, and button styles can be set with button_style attribute, etc.)

Just thought I'd report the suggestion at the very least. There aren't enough good tutorials like this for the IPython widget system.

icoz commented 8 years ago
import numpy as np
import matplotlib.pyplot as plt

from ipywidgets import *
from IPython.display import display