Skip to content

Commit be4df10

Browse files
committed
Upgraded Chapter 01 Recipe 05 to IPython 4.0.0
1 parent 296826e commit be4df10

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

notebooks/chapter01_basic/05_config.ipynb

Lines changed: 4 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,7 @@
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",
6263
"from IPython.core.magic import (Magics, magics_class, line_magic)\n",
6364
"import numpy as np"
6465
]
@@ -260,7 +261,7 @@
260261
"name": "python",
261262
"nbconvert_exporter": "python",
262263
"pygments_lexer": "ipython3",
263-
"version": "3.4.2"
264+
"version": "3.5.0"
264265
}
265266
},
266267
"nbformat": 4,

0 commit comments

Comments
 (0)