-
I hope every time in pudb, I press |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There's no such option right now, but I think that'd be relatively straightforward to add. I think the functionality makes sense, perhaps configurable in settings, and I'd be happy to consider a PR. |
Beta Was this translation helpful? Give feedback.
-
This can be done with a custom shell https://documen.tician.de/pudb/shells.html#custom-shells. Just exec the code you want into the from pudb.shell import run_ipython_shell
def custom_shell(_globals, _locals):
exec('from matplotlib import pyplot as plt', _globals, _locals)
return run_ipython_shell(_globals, _locals) |
Beta Was this translation helpful? Give feedback.
This can be done with a custom shell https://documen.tician.de/pudb/shells.html#custom-shells. Just exec the code you want into the
_globals
then pass it through to the existing shell function. For example, if you use the IPython shell: