[IPython-User] Simple QT in Notebook

caoimhinp kevin.gp@gmail....
Sat Apr 20 13:04:25 CDT 2013


I'm looking to put some example QT in a notebook.
The code runs but upon exit it is looking to also exit the python shell that
was started.
Basically, I get this error:

<my_error>
An exception has occurred, use %tb to see the full traceback.

SystemExit: 0


To exit: use 'exit', 'quit', or Ctrl-D.
</my_error>

Resetting the kernel clears it but I was wondering if there is a way I can
have my code check to see if I'm in a notebook. That way I can send a ctrl-D
and it should, hopefully, exit both. Or is there a better way to do this?

Kevin



--
View this message in context: http://python.6.x6.nabble.com/Simple-QT-in-Notebook-tp5014904.html
Sent from the IPython - User mailing list archive at Nabble.com.


More information about the IPython-User mailing list