Creating/editing Python in with the Pi's IDE (Thonny)
(while using the graphic operating system)
Finding the Terminal
Python in the Terminal Tips
Executing a Python Script from the Terminal
Installing a Python Library using the Terminal
Shutting down / Restarting the Pi5 with build in button (hardware shutdown)
Locate the Power Button: The Raspberry Pi 5 has a built-in power button located near the USB-C power connector.
Press the Power Button Twice: This will trigger a safe shutdown procedure, closing the operating system and powering down the Pi safely.
Wait for the Shutdown to Complete: After pressing the button, wait until the LED indicators on the board stop blinking. Once they’re off, it’s safe to disconnect the power supply if needed.
(Press the button again if you want to start it back up)
As the pi shuts down, you'll see a green light flashing. When the green light is done flashing, you can unplug the pi. The red light will not shut off until you unplug the pi.
Shutting down / Restarting the Pi (Software shutdown)
The Raspberry Pi should generally not be unplugged while running and does not have an on/off switch.
Start the shutdown or restart process by either clicking on the raspberry menu and choosing Logout
or using the terminal and typing sudo shutdown now or sudo reboot now
As the pi shuts down, you'll see a green light flashing. When the green light is done flashing, you can unplug the pi. The red light will not shut off until you unplug the pi.
Optional: Want to pilot VS Code for this class?