[IPython-user] checking for qthread
mantegazza at ill.fr
Wed Nov 16 02:40:57 CST 2005
Le Mardi 15 Novembre 2005 19:00, Fernando Perez a écrit :
> That is correct. Note also that the %config magic will print out the
> entire internal configuration structure. This variable is available as
> __IPYTHON__.rc, so you can also check programatically:
> In : __IPYTHON__.rc.qthread
> Out: 1
> In : __IPYTHON__.rc.gthread
> Out: 0
> Every single option passed to ipython is available in the rc struct,
> along with some additional things.
This is far better than the sys.argv solution, as it works in all cases
(direct start, or via IPShellEmbed).
More information about the IPython-user