Secondly, even with the release of the Raspberry Pi 4, the RPi itself is still very underpowered compared to your laptop/desktop - you won’t (and shouldn’t) be able to utilize powerful programming IDEs on the Pi itself. If you’re using a Raspberry Pi then you certainly could connect a keyboard, monitor, and mouse, but that’s not always necessary!įirst, you’ll have the hassle of setting up the additional hardware - it’s clunky to set up, you’ll lose space on your desk, and worst of all, you’ll constantly be switching back and forth between your RPi keyboard and your laptop/desktop keyboard. In that situation you need to login to the server and perform remote development - and you’ll want to ensure that your local host is configured properly for remote development. If you’re working with a cloud-based instance such as Amazon EC2, Microsoft Azure, etc., then you do not have physical access to the machine (meaning there is no keyboard/mouse to use).
Why would I want to write my code remotely? While you are still typing using the keyboard on your local system, the commands/code itself are actually being executed on the remote machine. Once you’re connected to the remote machine you can then:įigure 1 illustrates the concept of using your host machine to login to a device, writing code on the remote system, and then executing it. We’ll be covering these methods later in this guide. There are a number of ways to connect to the remote machine, including SSH, VNC, Jupyter Notebooks, and others. To perform development you first connect to the remote machine from your host.
To learn how to configure your Raspberry Pi, Amazon EC2 instance, or server for remote Python development, just keep reading! Remote development on the Raspberry Pi (or Amazon EC2)
You will discover how to configure your host machine to connect to these systems and remotely perform Python development. In this blog post, you will learn how to perform remote development on a Raspberry Pi (or Amazon EC2 server).
Click here to download the source code to this post