Skip to content

Commit 97d0b89

Browse files
committed
Merge pull request #27 from BCSharp/ipython4_ch01_rcp05
Upgraded Chapter 01 Recipe 05 to IPython 4.0.0
2 parents 296826e + 2ebcf45 commit 97d0b89

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

notebooks/chapter01_basic/05_config.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"%%writefile random_magics.py\n",
2626
"# NOTE: We create the `random_magics.py` file here so that \n",
2727
"# you don't have to do it...\n",
28-
"from IPython.utils.traitlets import Int, Float, Unicode, Bool\n",
28+
"from traitlets import Int, Float, Unicode, Bool\n",
29+
"#from IPython.utils.traitlets import Int, Float, Unicode, Bool # IPython < 4.x\n",
2930
"from IPython.core.magic import (Magics, magics_class, line_magic)\n",
3031
"import numpy as np\n",
3132
"\n",
@@ -58,7 +59,8 @@
5859
"cell_type": "raw",
5960
"metadata": {},
6061
"source": [
61-
"from IPython.utils.traitlets import Int, Float, Unicode, Bool\n",
62+
"from traitlets import Int, Float, Unicode, Bool\n",
63+
"#from IPython.utils.traitlets import Int, Float, Unicode, Bool # IPython < 4.x\n",
6264
"from IPython.core.magic import (Magics, magics_class, line_magic)\n",
6365
"import numpy as np"
6466
]
@@ -260,7 +262,7 @@
260262
"name": "python",
261263
"nbconvert_exporter": "python",
262264
"pygments_lexer": "ipython3",
263-
"version": "3.4.2"
265+
"version": "3.5.0"
264266
}
265267
},
266268
"nbformat": 4,

0 commit comments

Comments
 (0)