Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c367e1 commit bf5fb3fCopy full SHA for bf5fb3f
1 file changed
examples/Notebook/Importing Notebooks.ipynb
@@ -39,6 +39,7 @@
39
},
40
"outputs": [],
41
"source": [
42
+ "from IPython import get_ipython\n",
43
"from IPython.nbformat import current\n",
44
"from IPython.core.interactiveshell import InteractiveShell"
45
]
@@ -138,6 +139,7 @@
138
139
" mod = types.ModuleType(fullname)\n",
140
" mod.__file__ = path\n",
141
" mod.__loader__ = self\n",
142
+ " mod.__dict__['get_ipython'] = get_ipython\n",
143
" sys.modules[fullname] = mod\n",
144
" \n",
145
" # extra work to ensure that magics that would affect the user_ns\n",
0 commit comments