From 1874ad791d9ff6156641b319fb04555f47af21bc 2014-03-27 19:12:44 From: Thomas Kluyver Date: 2014-03-27 19:12:44 Subject: [PATCH] Add %%python2 cell magic. Closes gh-5442 --- diff --git a/IPython/core/magics/script.py b/IPython/core/magics/script.py index 02ff627..e4fd1f0 100644 --- a/IPython/core/magics/script.py +++ b/IPython/core/magics/script.py @@ -97,6 +97,7 @@ class ScriptMagics(Magics): 'perl', 'ruby', 'python', + 'python2', 'python3', 'pypy', ]