[PYTHON] From editing to execution

I thought it was convenient, so I will introduce it.

It is troublesome to write the same file name every time from editing to execution

terminal


vim test.py
python !$

If you execute with, you can refer to test.py with! $ , Which is convenient. Useful when the directory is far, such as ../ or after an absolute reference. ! $ Since it was the last reference, if you want to refer to file2 of'ls file1 file2 file3', you can do it with!: 2

Recommended Posts

From editing to execution
Python (from first time to execution)
Sum from 1 to 10
From MuJoCo license acquisition, renewal to execution
Introduction to Scapy ① (From installation to execution of Scapy)
[Ansible installation procedure] From installation to execution of playbook
Changes from Python 2 to Python 3.0
From the introduction of pyethapp to the execution of contract
Cheating from PHP to Python
Anaconda updated from 4.2.0 to 4.3.0 (python3.5 updated to python3.6)
Update python-social-auth from 0.1.x to 0.2.x
Migrate from requirements.txt to pipenv
Switch from python2.7 to python3.6 (centos7)
Connect to sqlite from python
Call Matlab from Python to optimize
Getting Started with Poetry From installation to execution and version control
From Elasticsearch installation to data entry
vtkXMLUnstructuredGridReader Summary (updated from time to time)
[Python] Hit Keras from TensorFlow and TensorFlow from c ++ to speed up execution
vtkOpenFOAMReader Summary (Updated from time to time)
How to use SWIG from waf
Cannot migrate from direct_to_template to TemplateView
Engineer vocabulary (updated from time to time)
Create folders from '01' to '12' with python
Conversion from pdf to txt 1 [pdfminer]
Programming to learn from books May 10
Post from python to facebook timeline
[Lambda] [Python] Post to Twitter from Lambda!
Output from Raspberry Pi to Line
[Introduction] From installing kibana to starting
Convert from pdf to txt 2 [pyocr]
Connect to utf8mb4 database from python
OpenMPI installation from download to pass-through
Tensorflow memo [updated from time to time]
Post images from Python to Tumblr
Send commands from Atom to Maya
How to launch Explorer from WSL
Programming to learn from books May 7
From Ubuntu 20.04 introduction to environment construction
Ssh connect to GCP from Windows
How to access wikipedia from python
Python to switch from another language
How to convert from .mgz to .nii.gz
Migrate from VS Code to PyCharm
pynq-z1 From purchase to operation check
Review from git init to git push
Did not change from Python 2 to 3
Update Python on Mac from 2 to 3
Change AWS EC2 instance from t2 to t3
Connect to Packetix VPN from CentOS 7 minimal.
[Python] Fluid simulation: From linear to non-linear
How to create a clone from Github
SIGNATE Quest ① From data reading to preprocessing
Connect to Docker's MySQL container from Flask
Why I moved from Java to Dart
From Python to using MeCab (and CaboCha)
Reinforcement learning to learn from zero to deep
How to easily convert format from Markdown
[Note] [PyTorch] From installation to easy usage
Execute a script from Jupyter to process
Convert from PDF to CSV with pdfplumber