We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba75940 commit 0a87f84Copy full SHA for 0a87f84
run-tests.py
@@ -188,6 +188,11 @@ def test_notebook(path, executable="python"):
188
env = dict(os.environ)
189
env["MPLBACKEND"] = "Template"
190
191
+ # If notebook makes use of magic commands then
192
+ # the script must be ran using ipython
193
+ # https://github.com/jupyter/nbconvert/issues/503#issuecomment-269527834
194
+ executable = "ipython" if ("run_cell_magic(" in code) else executable
195
+
196
# Run in subprocess
197
cmd = [executable] + ["-c", code]
198
try:
0 commit comments