[IPython-user] checking for qthread

Frédéric Mantegazza 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 [2]: __IPYTHON__.rc.qthread
> Out[2]: 1
>
> In [3]: __IPYTHON__.rc.gthread
> Out[3]: 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).

Thank's, Fernando.

-- 
   Frédéric




More information about the IPython-user mailing list