6 ms·
But they have not fixed the embed bug that prevents you from embedding IPython within another IPython session. I find the embedded IPython so useful during debu
by kghose 13y ago
But they have not fixed the embed bug that prevents you from embedding IPython within another IPython session. I find the embedded IPython so useful during debugging. I really wish it could work from within an IPython session.
- mattdeboard 13y agoI'm not familiar with embedding ipython, so maybe I"m way off the mark, but I use ipdb for the use case you're referring to. Works within ipython and all
- kghose 13y agoI should try ipdb. I've been using pdb (which I usually do using postmortem pdb.pm(), after my program crashes). But try out from IPython import embed; embed() instead of pdb.set_trace() It starts a whole IPython interpreter right there with all variables loaded. I like it because I can do inspection, plotting etc etc.
- mattdeboard 13y agoAh, yeah ipdb has much of the same functionality but not a full-fledged ipython instance, I don't believe.
- takluyver 13y agoFor reference, the underlying cause is that IPython is written assuming that there will only be one instance of it in a process. Fixing that assumption is on our radar, but to be honest, it's quite low down the list of priorities.