Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Patch applied.

  • Loading branch information...
commit 36c1b75714971df1661ecb857d4a6dd5cdef91eb 1 parent 7d5fdcc
Alcides authored takluyver committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 IPython/core/magic.py
View
6 IPython/core/magic.py
@@ -1382,7 +1382,11 @@ def magic_prun(self, parameter_s ='',user_mode=1,
return
arg_str = 'execfile(filename,prog_ns)'
- namespace = locals()
+ namespace = {
+ 'execfile': self.shell.safe_execfile,
+ 'prog_ns': prog_ns,
+ 'filename': filename
+ }
opts.merge(opts_def)
Please sign in to comment.
Something went wrong with that request. Please try again.