I frequently use this:
def interact():
import code
code.InteractiveConsole(locals=globals()).interact()
More Related Contents:
- Interactive input/output using Python
- Running an interactive command from within Python
- Read password from stdin [duplicate]
- Checking for interactive shell in a Python script
- Interactive matplotlib plot with two sliders
- Get output from a Paramiko SSH exec_command continuously
- Implement an interactive shell over ssh in Python using Paramiko?
- Tell if Python is in interactive mode
- How to finish sys.stdin.readlines() input?
- How do I parse a string to a float or int?
- Python Variable Declaration
- Weird Try-Except-Else-Finally behavior with Return statements
- Python find elements in one list that are not in the other [duplicate]
- Pandas: Get Dummies
- Find the item with maximum occurrences in a list [duplicate]
- Comparing previous row values in Pandas DataFrame
- Counting unique values in a column in pandas dataframe like in Qlik?
- What exactly is Python multiprocessing Module’s .join() Method Doing?
- Python file.tell() giving strange numbers?
- Redirecting stdio from a command in os.system() in Python
- Remove all items from a layout
- pygame.error “couldn’t open image.png” only in command prompt
- Link to Python with MinGW
- Inserting the same value multiple times when formatting a string
- UnicodeDecodeError: ‘ascii’ codec can’t decode byte 0xd1 in position 2: ordinal not in range(128)
- multiprocessing pool example does not work and freeze the kernel
- ‘virtualenv’ is not recognized as an internal or external command, operable program or batch file
- Write a Pandas DataFrame to Google Cloud Storage or BigQuery
- How to create raw string from string variable in python?
- json.decoder.JSONDecodeError: Extra data: line 2 column 1 (char 190) [duplicate]