[IPython-user] Closing an embedded IPython Shell.

Dennis Muhlestein djmuhlestein@gmail....
Wed Jul 15 11:55:09 CDT 2009


Consider the following usage:

 > from IPython.Shell import IPShellEmbed
 > ipshell=IPShellEmbed()
 > # at this point, launch an app in a thread
 > ipshell()

# later on, the app closes and I want to close the shell
# from the app's thread
 > ipshell.magic_Exit()

The shell does indeed close, but not until I press Enter.  Is there a 
way to get the shell to stop listening on stdin and terminate immediately?

Thanks
Dennis


More information about the IPython-user mailing list