Permalink
Browse files

update notebooks remove automated import of magic commands

  • Loading branch information...
sdpython committed Jul 27, 2016
1 parent e79d3fe commit b652cd5794e6d4bd5c7d72cdb3e39aa60eaac6fc
@@ -30,7 +30,8 @@
"outputs": [],
"source": [
"import code_beatrix\n",
"from code_beatrix.ipythonhelper import display_canvas_point"
"from code_beatrix.ipythonhelper import display_canvas_point\n,"
"%load_ext code_beatrix"
]
},
{
@@ -22,7 +22,8 @@
},
"outputs": [],
"source": [
"%load_ext tutormagic"
"%load_ext tutormagic\n",
"%load_ext code_beatrix"
]
},
{
@@ -30,6 +30,7 @@
"outputs": [],
"source": [
"import code_beatrix.jsscripts.snap\n",
"%load_ext code_beatrix\n",
"import IPython"
]
},
@@ -34,6 +34,7 @@
],
"source": [
"from code_beatrix.jsscripts import copy_jstool2ipython\n",
"%load_ext code_beatrix\n",
"copy_jstool2ipython(\"snap\")"
]
},
@@ -52,16 +52,3 @@ def load_ipython_extension(ip):
"""
from .ipythonhelper.magic_scratch import register_scratch_magics
register_scratch_magics(ip)
try:
from IPython import get_ipython
ip = get_ipython()
if ip is not None:
import pyquickhelper
pyquickhelper.load_ipython_extension(ip)
load_ipython_extension(ip)
except ImportError as e:
# IPython is not installed
pass

0 comments on commit b652cd5

Please sign in to comment.