Question: How Do I Edit a Py File in Linux?
Contents

How do I edit a .PY file in Linux?

  1. Simply use any command line text editor you have installed on the machine… vi, vim, nano, etc. nano file.py – rickjerrity May 18 ’18 at 22:02.
  2. .py files are text files. You might want to broaden your question/search to text fiiles – wwii May 18 ’18 at 22:12.

How do I edit a python file in Linux terminal?

Open the Python Editing Terminal from the Command Menu (Ctrl+P >Open Python Editing Terminal ). A terminal will open, where you can run arbitrary Python code and use the vscode module. On Python 2, this returns an unicode object; on Python 3, a str object is returned.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest