I am relatively new to python, but have a little experience using IDL. I was wondering if anyone knows if python has equivalent commands for the IDL stop and .reset commands.
If I run some IDL script, I wrote that I entered the stop command, basically what it does is stop the script and give me access to the command line in the middle of the script, So I have access to all functions and variables, which I defined before the stop command, which are really useful for me for debugging.
The .reset command, which I find very useful. What it does is reset the IDL environment (clears all variables, functions, etc.). As if I closed this session and opened a new one, but without the need to end and restart the IDL. I find that if I try to debug a script, I wrote that it is sometimes useful to start from scratch and not have reset IDL (or python now). It would also be useful in python to be able to not import any modules that I previously imported.
Any help with these questions would be greatly appreciated.
Greetings
Related
- Python Drop in REPL
- Is it possible to switch to ipython from code?
python reset equivalent idl-programming-language
Jamie
source share