<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Great catch! You are absolutely right, ipython seems to be still<br>

active. Yes, so this approach has it's limitations, that it will alter<br>
the environment.<br>
<br>
Never the less, it actually doesn't hurt me at all, because I use<br>
set_trace() to debug some particular part of the code and once I am<br>
done, I don't care if the program crashes or what, since I want to<br>
exit it anyway.<br>
</blockquote><div><br>You are welcome :) To tell the truth I don't care too much about this either, only for the sake of the integrity of the work. <br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
So this should be mentioned in the docstring too. I'll wait for<br>
ipython developers if they agree with the patch and if so, I'll update<br>
the docstring with this information.<br>
<font color="#888888"><br>
Ondrej<br>
</font></blockquote></div><br>I might have devised a way to launch a pylab session from Python following your footsteps. What I did was in the Shell.py<br>replaced the below line as is shown (My matplotlibrc file uses QT4 backend currently but it works with WX too, so Mayavi will not complain :)<br>
<br>    #user_opts = set([s.replace('-','') for s in argv[:3]])<br>    user_opts = set(['pylab'])<br><br>Then replaced __init.py__ set_trace()<br><br>    #Shell.IPShell(user_ns=dict(globals, **locals)).mainloop()<br>
    Shell.start(user_ns=dict(globals, **locals)).mainloop()<br><br>now IPython.set_trace() works fine with pylab too :), however this also shows the similar strange behaviours as Shell.IPShell case...<br><br>Hope someone from the lead IPy dev team response this topic and the patch will be neatly added into the code-base.<br>
<br>Gökhan<br><br><br><br>