-
Notifications
You must be signed in to change notification settings - Fork 227
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ipython StartUp Script for pudb python shell. #642
Comments
It seems as though you're wanting this to affect the shell in the debugger. Have you considered using pudb's custom shell feature? |
I have not yet. If that is another way to go, then i will investigate it. Thank you! |
hello again! so i've hooked up the custom_shell and set up my file i've found that i need to use
To use pprint in my console, i can just do `pprint("hello") and it comes out correctly. is there a way i can run an entire .py file instead of just doing line by line in my i've tried the following below and it will output a print statement but it won't import pprint. See below for 2 versions of my
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Is your feature request related to a problem? Please describe.
Is there a way to add a hook(not sure if this is the correct usage of the term 'hook') for a PYTHONSTARTUP variable to point to a
startup.py
file that can be ran whenever pudb starts up?import pprint
orimport os
with every time i startup pudb for the python console, it would already run automatically and i would only need to typepprint.pprint(variable_to_pretty_print)
I'm able to get it to work with my ipython shell from terminal however I can't get it to work in pudb's ipython. I figure if i can get it to work for my terminal's ipython, its possible for pudb?
Describe the solution you'd like
I would like for pudb to search my .zshrc file to look for a PYTHONSTARTUP or similar variable which would then point to a /my/pudb/startup.py script
Describe alternatives you've considered
not sure of any alternatives yet.
Additional context
Add any other context or screenshots about the feature request here.
What I tried
I gave it an attempt and modified the
run.py
. I tried in the iterm2 consolepython3 debug_me.py
but no dice. if there is somewhere else I should be modifying, please let me know.The text was updated successfully, but these errors were encountered: