[Ipython-tickets] [IPython] #197: %run doesn't doesn't update from file correctly with use of IPShellEmbed

IPython ipython-tickets@scipy....
Sun Dec 30 15:51:24 CST 2007


#197: %run doesn't doesn't update from file correctly with use of IPShellEmbed
---------------------------------------+------------------------------------
 Reporter:  quadri@strw.leidenuniv.nl  |        Owner:  vivainio
     Type:  defect                     |       Status:  assigned
 Priority:  high                       |    Milestone:          
Component:  ipython                    |      Version:          
 Severity:  normal                     |   Resolution:          
 Keywords:                             |  
---------------------------------------+------------------------------------
Comment (by vivainio):

 It seems that instantiation of ipshellembed inside %run screws up IPython
 pretty badly in general. If you print self.shell here (in Magic.py / run):

 {{{
                    # update IPython interactive namespace
                     del prog_ns['__name__']
                     print "prog_ns",prog_ns
                     print self.shell
                     self.shell.user_ns.update(prog_ns)
 }}}

 You'll see that InteractiveShell instance is different on every run if you
 instantiate ipshellembed. Also, prog_ns is polluted by lots of IPython
 crap.

-- 
Ticket URL: <http://ipython.scipy.org/ipython/ipython/ticket/197#comment:3>
IPython <http://ipython.scipy.org>
The IPython interactive Python system


More information about the Ipython-tickets mailing list