NiceGUI Lets You Create Web Apps in Python

What a Nice Web App

© Lead Image © Alexander Kovalenko, 123RF.com

© Lead Image © Alexander Kovalenko, 123RF.com

Article from Issue 296/2025
Author(s):

With a Raspberry Pi and the NiceGUI Python library you can build a weather station or a Pi Rover app in less than 15 lines of Python code.

The Python ecosystem is incredibly large, so it will not be unexpected that there are some excellent Python libraries that help you create web apps. Packages like Remi [1] and PySimpleGUIWeb [2] are great tools for building web apps totally in Python, and for web charting there are some solid choices like Bokeh [3] and Plotly [4].

If you're looking for an integrated Python web solution that handles both charting and displaying widgets, you might want to consider NiceGUI [5]: It lets you do everything in Python (no JavaScript or HTML required), it offers charting, chatting, data input, layout, and multi-media components, and the web server is built-in, too.

In this article, I introduce NiceGUI with two classic Raspberry Pi web projects: a Pi-based rover and a basic weather station. Both projects will include live video, and the Python scripts will contain less than 15 lines of code.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • PiCam Surveillance

    The new PiCam camera for the Raspberry Pi delivers image data with very little overhead, making it ideal for video surveillance applications. We find the bumps in the road you'll encounter and show you how to smooth them out with a few Linux commands and pipes.

  • Repurposed Router Projects

    If you have an old router lying around, you can put it to good use with a few easy projects and learn something along the way.

  • Watching the Spectators

    Netflix keeps track of who watches which program and when. In this month's column, Mike Schilli whips up a Go program to analyze and draw fancy graphs of his viewing habits.

  • Python and Node-RED

    Adding Python to your Node-RED arsenal lets you create easy Raspberry Pi robotic and IoT projects.

  • PySimpleGUI

    Use the same code for your Python GUI and web apps.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News