⬅︎ Back to To code or to pdb in Python
I usually use IPython for this: import IPython; IPython.embed()I can't find an easy way to add local variables into that, although there are two features which make it not so much of an issue: - great history mechanism - 'run' command to run a script/module in the current environment.I find I can no longer live with a bare Python shell after having being spoilt with IPython!
Comment
I usually use IPython for this:
import IPython; IPython.embed()
I can't find an easy way to add local variables into that, although there are two features which make it not so much of an issue:
- great history mechanism
- 'run' command to run a script/module in the current environment.
I find I can no longer live with a bare Python shell after having being spoilt with IPython!