Launch a shell while a Python script is running

python


import code
code.interact(local=locals())

The usual shell starts at the point where it is inserted.

Recommended Posts

Launch a shell while a Python script is running
Launch an interactive shell while running Python
Launch a Python script as a service
Determine if standard output is piped when running a Python script
What's in that variable (when running a Python script)
Python list is not a list
Let's try a shell script
What is a python map?
How to run a Python program from within a shell script
[Python, shell script, team development] Create a nifty Git repository
[Python] What is a zip function?
[Python] What is a with statement?
Determining which OS is running Python
Write a batch script with Python3.5 ~
Create a shell script to run the python file multiple times
Write a script in Shell and Python to notify you in Slack when the process is finished
When running a Python shell from Electron, pass multiple arguments to run Python.
[Ubuntu] How to execute a shell script
Run the Python interpreter in a script
Hash in Perl is a dictionary in Python
[python] [meta] Is the type of python a type?
Launch a Flask app in Python Anywhere
Manage logrotate generations with a shell script.
Use Django from a local Python script
Creating a shell script to write a diary
python launch
How to run a Maya Python script
About February 02, 2020 * This is a Python article.
A memo of a tutorial on running python on heroku
View today's weather forecast with a shell script
Is sys.settrace, a python genius feature, another language?
[Xonsh] The Python shell is sharp and god
"Python Kit" that calls a Python script from Swift
A story about running Python on PHP on Heroku
Launch a web server with Python and Flask
Call a Python script from Embedded Python in C ++ / C ++
Trap trapped when running a Python Windows executable
I tried running alembic, a Python migration tool
Judge whether it is a prime number [Python]
Run a python script from excel (using xlwings)
Tell me what a conformal map is, Python!
Script python file
Create a python script to check if the link at the specified URL is valid 2
Shell script basics # 2
Python is easy
python script skeleton
Create a python script to check if the link at the specified URL is valid
Python script profiling
Import python script
What is python
Python is instance
What is Python
[Grasshopper] When creating a data tree on Python script
Check if the string is a number in python
I tried running python etc. from a bat file
A memorandum to run a python script in a bat file
Launch a Python web application with Nginx + Gunicorn with Docker
A shell script that puts Webmin into Alpine Linux
From buying a computer to running a program with python
python> check NoneType or not> if a == None:> if a is None:
[Python] I tried running a local server using flask