It was great to edit the Python file in the Raspberry Pi with Atom's remote function

Trigger

When I was using the editor on the desktop screen of Raspberry Pi from a PC with VNC I had some complaints. . .

** "Don't use ..." **

** "Cho use it ..." **

The copy and paste didn't go well, or the movement was sluggish. I was wondering if something could be done.

"Ah, I wish I had an editor like Atom or VC code ..." . .

There is! , There is Atom!

That's right, Atom's package ... there is!

So, edit, save and run the Python file in the Raspberry Pi with Atom I summarized the method.

image

With VNC (Virtual Network Computing) virtual network connection From the method of displaying and operating the editor on the desktop screen of Raspberry Pi from the PC,

I will do the method of remotely accessing the Raspberry Pi on Atom and editing the file. スライド1.jpeg

environment

--Main body: Raspberry Pi 4 4B-32GB

How to read the article

-: Pencil2: The part with this mark represents the input. -: Mag: The part with this mark indicates confirmation.

procedure

It was introduced by the following procedure.

--Installing Atom --Package installation --Setting to connect with Raspberry Pi --Test

Install Atom

Download the software from the Atom website (https://atom.io/).

Follow the download procedure this article.

Package installation

Install the following three packages.

-** japanese-menu : Package to be translated into Japanese - ftp-remote-edit : A package that allows you to connect to Raspberry Pi via SFTP and edit files. - platformio-ide-terminal **: A package that makes an external terminal available

. First, click "Atom", then "Preferences ..." in the sidebar. image.png

You have transitioned to Settings. Then click "install" to get to a location where you can install the package.

: pencil2: Enter the package name here to display the installation package.

image.png

Click ": cloud: install" to install. image.png

If you want to check the installed packages, click "Package" and they will be displayed in a list. image.png

Settings to connect with Raspberry Pi

Click Packages> Ftp-Remote-Edit> Toggle. image.png

: pencil2: At first, you will be asked to set a password, so enter the password. image.png

After that, you will need a password for setting and connecting, so make a note of it.

Once the password is passed, a tab called "Remote" will appear on the screen. Place the cursor in that tab, right-click and click Edit Serves. image.png

: pencil2: The setting screen will be displayed, so enter as follows. image.png

: mag: If the connection is successful, it will be as follows. image.png

test

Let's open some file. This time, I will open "test-code.py" on the desktop of Raspberry Pi.

Atom image.png

VNC image.png

I was able to confirm that they were in sync.

Try opening Astro Boy's terminal and launching the program. Click the "+" at the bottom left of the screen to open the terminal. image.png

Log in to your Raspberry Pi to work with the files on your Raspberry Pi. : pencil2: Enter as follows. image.png image.png image.png

Change to the directory where "test-code.py" is located. : pencil2: Since it is located on the desktop, enter cd Desktop /. image.png

: pencil2: The program starts with python "filename". image.png

Impressions

I feel that UX has improved a lot because it is possible to edit files with Atom. The increased color scheme makes it easier to see, and above all, the response has improved.

I have a feeling that I might find more useful features in combination with other packages: sunglasses:

reference

Atom editor is convenient for programming on Raspberry Pi

Recommended Posts

It was great to edit the Python file in the Raspberry Pi with Atom's remote function
Use python on Raspberry Pi 3 to light the LED with switch control!
The file name was bad in Python and I was addicted to import
Read the data of the NFC reader connected to Raspberry Pi 3 with Python and send it to openFrameworks with OSC
Log in to the remote server with SSH
Connect to MySQL with Python on Raspberry Pi
The file edited with vim was readonly but I want to save it
I want to get the file name, line number, and function name in Python 3.4
Try to use up the Raspberry Pi 2's 4-core CPU with Parallel Python
[Introduction to Python] How to iterate with the range function?
I tried to touch the CSV file with Python
Convert the image in .zip to PDF with Python
I was addicted to scraping with Selenium (+ Python) in 2020
I was able to repeat it in Python: lambda
When I tried to do socket communication with Raspberry Pi, the protocol was different
I want to replace the variables in the python template file and mass-produce it in another file.
What I did when I was angry to put it in with the enable-shared option
It is easy to execute SQL with Python and output the result in Excel
Update Python for Raspberry Pi to 3.7 or later with pyenv
Download the file in Python
Make a note of what you want to do in the future with Raspberry Pi
Change the standard output destination to a file in Python
Recursively get the Excel list in a specific folder with python and write it to Excel.
Set the fastest python file execution after starting Raspberry Pi.
In omegaconf, let's pass the direct parameter file to the function
I tried to implement the mail sending function in Python
I also tried to imitate the function monad and State monad with a generator in Python
Change the message displayed when logging in to Raspberry Pi
I tried to divide the file into folders with Python
Try to decipher the garbled attachment file name with Python
[Introduction to Python] How to get data with the listdir function
Connect Raspberry Pi to Alibaba Cloud IoT Platform with Python
If I thought I didn't see the pyc file recently, it was quarantined in pycache by python3.
How to upload a file to Cloud Storage using Python [Make a fixed point camera with Raspberry PI # 1]
Process the gzip file UNLOADed with Redshift with Python of Lambda, gzip it again and upload it to S3
Getting Started with Heroku-Viewing Hello World in Python Django with Raspberry PI 3
Control the motor with a motor driver using python on Raspberry Pi 3!
I tried to automate the watering of the planter with Raspberry Pi
[Introduction to Python] How to split a character string with the split function
I learned how the infrared remote control works with Raspberry Pi
What I was addicted to with json.dumps in Python base64 encoding
Output the contents of ~ .xlsx in the folder to HTML with Python
I want to run the Python GUI when starting Raspberry Pi
Use python on Raspberry Pi 3 to illuminate the LED (Hello World)
Read a file in Python with a relative path from the program
[Python] Explains how to use the format function with an example
Extract the xz file with python
Use vl53l0x with Raspberry Pi (python)
[Python] Write to csv file with Python
Save the binary file in Python
Output to csv file with Python
In the python command python points to python3.8
[Raspberry Pi] Changed Python default to Python3
GCP's Cloud Shell Editor was clogged up with the Python development environment, so I managed to rebuild it in a vacant lot.
I tried to open the latest data of the Excel file managed by date in the folder with Python
[Python] When the priority is the same in Priority Queue, it can be acquired in the order in which it was added to the queue.
The 16th offline real-time how to write problem was solved with Python
A memo to simply use the illuminance sensor TSL2561 with Raspberry Pi 2
When I tried to run Python, it was skipped to the Microsoft Store
[Python] Explains how to use the range function with a concrete example
How to get the date and time difference in seconds with python