[PYTHON] How to start the code written in Atom with one command without starting teminal

How do you guys ever write code and execute it?

I'm always

Start terminal

cd to a suitable directory

python 〇〇.py

enter

I was doing it, but this is quite troublesome, isn't it?

This time, you can skip all this troublesome procedure and suddenly execute the code with one command in the Atom application.

By installing the Atom extension, I was able to run the program without starting the terminal, so make a note of it.

I think most people do it normally, but I was quite impressed because it was a function I found when I was messing around with the Atom settings.

So what did you actually do?

↓ I just installed this.

スクリーンショット 2017-03-18 0.01.37.png

Preferences→install

Just install the package called script.

Select the code on Atom and press ⌘ + i to automatically start terminal and execute the code.

It seems that you can execute only a part of the code with ⌘ + j, but I don't know how to use it yet. Lol

Recommended Posts

How to start the code written in Atom with one command without starting teminal
How to delete the specified string with the sed command! !! !!
[Note] How to write QR code and description in the same image with python
How to start the program
How to embed multiple embeds in one message with Discord.py
How to return to the previous directory with the Bash cd command
How to check ORM behavior in one file with django
I want to start a jupyter environment with one command
How to manipulate the DOM in an iframe with Selenium
Try HeloWorld in your own language (with How to & code)
[sh] How to store the command execution result in a variable
How to implement Java code in the background of RedHat (LinuxONE)
How to make a command to read the configuration file with pyramid
In the python command python points to python3.8
How to convert 0.5 to 1056964608 in one shot
How to monitor the execution status of sqlldr with the pv command
How to run TensorFlow 1.0 code in 2.0
How to display legend marks in one with Python 2D plot
How to calculate "xx time" in one shot with Python timedelta
How to hide the command prompt when running python in visual studio 2015
How to get the date and time difference in seconds with python
How to use VS Code (code server) with Google Colab in just 3 lines
[Linux] How to use the echo command
How to work with BigQuery in Python
How to use the Linux grep command
How to use CUT command (with sample)
How to pass the execution result of a shell command in a list in Python
How to drop Google Docs in one folder in a .txt file with python
A memorandum of how to execute the! Sudo magic command in Jupyter Notebook
How to display in the entire window when setting the background image with tkinter
[linux] How to quit without waiting for the other party to disconnect with telnet
How to get a list of files in the same directory with python
How to deal with memory leaks in matplotlib.pyplot
How to receive command line arguments in Python
[REAPER] How to play with Reascript in Python
How to specify the NIC to scan with amazon-dash
Start Caddy with docker without putting Caddy in CentOS8
How to implement Discord Slash Command in Python
How to deal with run-time errors in subprocess.call
Start Nginx with docker without putting Nginx in CentOS8
Introduction to Python with Atom (on the way)
How to get the files in the [Python] folder
How to use tkinter with python in pyenv
How to Learn Kaldi with the JUST Corpus
Run the output code with tkinter, saying "A, pretending to be B" in python
System trade starting with Python3: Bio-health stocks to look at in the new Corona
How to identify the element with the smallest number of characters in a Python list?
How to check in Python if one of the elements of a list is in another list
How to count the number of occurrences of each element in the list in Python with weight
How to create an article from the command line
How to retrieve the nth largest value in Python
[For beginners] How to use say command in python!
How to convert / restore a string with [] in python
How to get the variable name itself in python
How to run the Ansible module added in Ansible Tower
How to write a GUI using the maya command
How to get the number of digits in Python
How to do hash calculation with salt in Python
[Introduction to Python] How to iterate with the range function?
How to know the current directory in Python in Blender
How to define Decorator and Decomaker in one function