|
I hope every time in pudb, I press |
Answered by
asmeurer
Jan 28, 2023
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. |
0 replies
|
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) |
1 reply
Answer selected by
Freed-Wu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
_globalsthen pass it through to the existing shell function. For example, if you use the IPython shell: