|
25 | 25 | "%%writefile random_magics.py\n", |
26 | 26 | "# NOTE: We create the `random_magics.py` file here so that \n", |
27 | 27 | "# 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", |
29 | 30 | "from IPython.core.magic import (Magics, magics_class, line_magic)\n", |
30 | 31 | "import numpy as np\n", |
31 | 32 | "\n", |
|
58 | 59 | "cell_type": "raw", |
59 | 60 | "metadata": {}, |
60 | 61 | "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", |
62 | 64 | "from IPython.core.magic import (Magics, magics_class, line_magic)\n", |
63 | 65 | "import numpy as np" |
64 | 66 | ] |
|
260 | 262 | "name": "python", |
261 | 263 | "nbconvert_exporter": "python", |
262 | 264 | "pygments_lexer": "ipython3", |
263 | | - "version": "3.4.2" |
| 265 | + "version": "3.5.0" |
264 | 266 | } |
265 | 267 | }, |
266 | 268 | "nbformat": 4, |
|
0 commit comments