How to Check GPIO Status

How to check GPIO status

The GPIO (General Purpose Input/Output) pins of the Raspberry Pi are how the device can interface with external hardware components. It is how things like sensors and actuators plug into the Raspberry Pi, and allow users to control such devices from the Raspberry Pi itself. Something as simple as turning an LED on or off will require setting the pin to which it is plugged in to either true or false, which changes the current status of that pin.

Read more

Creating and Managing Python Virtual Environments with virtualenv on Ubuntu/Debian

Managing Python projects can often lead to conflicts between dependencies and differing versions of packages. This is where virtualenv comes into play. Virtualenv is a tool that allows users to create isolated Python environments, ensuring that each project has its own dependencies and packages, independent of others. This tutorial will guide you through the steps to virtualenv create environment on Ubuntu/Debian Linux systems, providing a clean and controlled workspace for your Python projects.

Read more

How to Install pip on Ubuntu 24.04

Installing pip, the Python package manager, on Ubuntu 24.04 is an essential step for Python developers and enthusiasts. This powerful tool simplifies the process of installing and managing Python packages and dependencies. Ubuntu 24.04, being a popular choice for developers, provides a straightforward way to install pip. In this article, we’ll guide you through the process, ensuring you have pip up and running efficiently on your Ubuntu system.

Read more

Installing Anaconda on Ubuntu 24.04

Anaconda is an essential tool for data scientists and developers working in Python and R. It simplifies package management and deployment, offering a collection of over 1500 data science packages. This guide provides detailed steps to install Anaconda on Ubuntu 24.04, including setting up environments and basic usage.

Read more

How to change from default to alternative Python version on Debian Linux

How to change from default to alternative Python version on Debian Linux

Your Debian Linux installation may include multiple Python versions and thus also include multiple Python binary executables, and it’s possible to change the python version that the system is using. In this tutorial, you will see how to install multiple versions of python, and change the python version on Debian using the update-alternatives python command. This will allow you to run various Python programs including legacy scripts. Check the sections below to learn how.

Read more

Python editors on Raspberry Pi

Python editors on Raspberry Pi

The Raspberry Pi can be an excellent choice for developers or hobbyist programmers as a small and lightweight workstation. Python is already installed by default on the Raspberry Pi, if you are running the default Raspberry Pi OS. Despite its small size, the Raspberry Pi contains hardware that is plenty sufficient to run a Python IDE so you can crank out your Python code. Unfortunately, some editors do not have ARM support, so our choices are slightly smaller on the Raspberry Pi.

Read more

How to change Python versions on Raspberry Pi

How to change Python versions on Raspberry Pi

It is possible to have multiple versions of Python installed on the Raspberry Pi simultaneously. It is also simple enough to switch between the versions, which may come in handy for Python programmers that need to support a mix of legacy and modern Python code. Or, perhaps you want to try out a new beta or nightly Python build, without replacing the more stable copy you already have. In this tutorial, you will see how to change between various Python versions on the Raspberry Pi.

Read more

How to autostart Python script on Raspberry Pi

How to autostart Python script on Raspberry Pi

Many users want their Raspberry Pi to perform tasks unattended, as part of automating the Raspberry Pi. This cuts down on repetitive tasks that usually fall on the administrator’s lap. A common way to trigger automatic events is when the Raspberry Pi first boots up. Such a configuration allows us to start a Python script automatically every time the Raspberry Pi first boots up.

Read more

Introduction to jupyter notebook

Introduction to Jupiter Notebook

Jupyter Notebook is a web application used to produce computational documents, commonly called “notebooks” which can contain human-readable text, executable code, charts, and more. When used together with Python and libraries like pandas and Matplotlib, Jupyter notebooks are an excellent tool we can use for presentations and data analysis.

Read more

How to install python applications in isolated environments with pipx

How to install Python applications in isolated environments with pipx

If you are familiar with Python, you surely used pip: the Python package installer. With pip, we can install packages “globally” or in virtual environments. Virtual environments are mainly used to install dependencies of specific projects, so to develop them in isolation. We usually install packages, “globally”, instead, when want to access the utilities they provide from anywhere. By using pipx we can get the best of both approaches: we can install each application in its own virtual environment, and, at the same time, access it globally.

Read more

Introduction to pandas

Introduction to pandas

Pandas is a free and open source Python library released under the BSD license. Originally developed by Wes McKinney in 2008, and supported by companies like Intel and Nvidia, it is targeted at data analysis and manipulation. It can be easily used to read and write data from a variety of sources such as Excel spreadsheets, Comma-separated Values (CSV) files, and many more.

Read more