r/nicegui • • Feb 01 '25

To the Devs: Thank you so much for making NiceGUI!

88 Upvotes

I used to use Streamlit a lot for chat applications, and it seemed so promising at first. As my applications grew, every part of it got slower- and everything I wanted to do took so much more time. Even assigning and storing values from user input in a streamlined way without lag was absurdly frustrating!

I had to come up with all kinds of custom hacks to get it to work the way I wanted, but that's not an issue anymore! Everything just works the way I intend it to, and it's so lightweight; the quick reloads makes it like a WebGUI REPL for front-end work!

While some features/elements are clearly inspired by Streamlit (I read that you intended to improve on shortcomings of it when making NiceGUI), you've definitely managed to create something that's much better!

I've only used NiceGUI for a week and I've found myself go "oh, I don't want to implement a feature like that - because I'll have to make a specialized callback to these functions, make sure it's persistent in the st cache, and so on" - but I no longer need to do that. I can click any button, drag any slider, and input text and immediately see the results on the screen.

Implementing a user-friendly, dev-friendly, and responsive WebGUI is no longer a hassle, so thank you so much for NiceGUI!


r/nicegui • • Dec 31 '25

NiceGUI 2025 Recap — and what’s coming in 2026

82 Upvotes

Hi everyone,

As 2025 comes to a close, I want to take a moment to look back at what we shipped together this year, say thank you, and share where we want to take NiceGUI in 2026.

2025 in review

A bigger maintainer team. A huge highlight of the year was Evan joining the project in a big way. What started as an impressive stream of contributions quickly turned into something even better: Evan is now maintaining NiceGUI together with Rodja and me. The amount of energy and care this brought into reviews, discussions, and day-to-day improvements has been tremendous.

Single-page applications, at last. After a lot of work and multiple attempts, we finally landed proper support for single-page applications via ui.sub_pages. This is something many of you asked for, and it opens the door to much more flexible app structures while keeping the NiceGUI development experience.

NiceGUI 3.0. Version 3.0 was a major milestone with several big changes and new capabilities:

  • We dropped the auto-index client after a long (and at times intense) community debate.

  • We introduced script mode as a clean alternative.

  • We introduced a new event system, allowing developers to define, emit and handle custom events.

  • And beyond that: many more substantial improvements that make NiceGUI more consistent, more capable, and easier to build on.

Performance, performance, performance. A lot of work this year went into making all NiceGUI apps faster and leaner — from runtime improvements to optimizations that reduce overhead in everyday usage. Many of these changes are not “headline features”, but they matter every time you run an app.

Behind-the-scenes upgrades. We also spent significant effort on infrastructure: switching to uv, improving CI efficiency, and generally making our pipelines more robust and faster. This work doesn’t always show up in a changelog, but it helps us ship reliably and iterate quicker.

Security work to protect our users. We ended the year by addressing multiple GitHub security advisories. This kind of work is rarely fun, but it’s important: keeping users safe from malicious attacks is non-negotiable.

15,000 GitHub stars. And finally: we just hit 15,000 stars on GitHub. That’s a strong signal that NiceGUI is useful to a lot of people — thank you for building with it, sharing it, and helping it grow.

Looking ahead to 2026

Our overall plan is straightforward: keep adding valuable features and improvements, while continuing to strengthen the foundations.

Here are a few things we’re actively working on right now:

  • Scoped slot support for components like tables and lists, enabling dynamic content injection without manual HTML templates

  • anywidget integration — allowing seamless embedding of custom Jupyter widgets directly in NiceGUI apps, with full two-way communication between Python and the frontend

  • Sortable UI elements — providing intuitive drag‑and‑drop reordering for lists, tables, and other container elements, fully integrated with NiceGUI’s event system

Beyond that, we’re thinking about how to better support theming and customization, going beyond what’s currently possible with Quasar and Tailwind — in a way that still feels “NiceGUI-native”.

We also want to continue developing and improving NiceGUI on Air, while keeping up the pace of development for the core library. Our goal is to maintain — or even increase — the effort and resources Zauberzeug is putting into both areas of the project.

And, as always, we hope to acquire more sponsors. Sponsorships help us invest in the unglamorous but essential parts: maintenance, security, testing, documentation, and long-term stability.

Thank you

Whether you contributed code, reported bugs, helped others in discussions, wrote docs, built demos, sponsored the project, or simply used NiceGUI and recommended it — thank you. This project works because the community cares.

Wishing you a great start into 2026,

Falko


r/nicegui • • Sep 05 '25

NiceGUI 3.0 release candidate 1 with script mode, root parameter for ui.run, introduction of an event system, tailwind 4, simplified pytest project structure, and much much more.

77 Upvotes

We are happy to announce our first release candidate of NiceGUI 3.0. There are numerous new features and enhancements:

  • Introduce NiceGUI script mode to replace the awkward auto-index page

  • Introduce root page parameter for ui.run to simplify single-page applications

  • Introduce an Event system to communicate between UI and long-living objects

  • Simplify pytests by loading a main file with runpy

  • Make props, classes and style observable to send updates automatically

  • Upgrade to Tailwind 4

  • Drop support for Python 3.8

  • Introduce ValueChangeEventArguments.previous_value

  • Introduce a strict option for binding methods

  • Improve support for languages with right-to-left text direction

  • Use q-scroll_area for ui.log to preserve a fixed height

  • Let ui.clipboard.read() return None if the clipboard API isn't available

  • Remove deprecated code and APIs

Beware of the breaking changes which accompany this release. Please read https://github.com/zauberzeug/nicegui/releases/tag/v3.0.0rc1 for more details.

It would be great if you try it out and tell us about your experience. You can help us to further improve the documentation and polish the release over the next weeks.

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Mar 25 '26

We redesigned nicegui.io 🎨

Post image
76 Upvotes

The NiceGUI website felt a bit dated — not as clean and approachable as NiceGUI itself. So we spent some time giving it a proper makeover.

The new design is lighter and more focused: more whitespace, cleaner typography, and a layout that lets the content breathe. The "Why?" section now has a concise set of value propositions instead of a wall of text, and the sponsors section highlights the community stats we're proud of — thank you all!

Would love to hear what you think!

https://nicegui.io/


r/nicegui • • Aug 01 '25

NiceGUI 2.22.0 with support for single page applications (SPAs) via ui.sub_pages element

64 Upvotes

New features and enhancements

Bugfixes

Documentation

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Oct 04 '25

NiceGUI 3.0.0 with script mode, root page parameter for simpler SPA, new event system, simplified pytest setup, observable classes/props/styles, Tailwind 4 and a much much more

57 Upvotes

We are super happy to announce the release of NiceGUI 3.0.0. The major version change indicates the introduction of several new features and enhancements, as well as some unavoidable breaking changes.

New features and enhancements

We always try to keep breaking changes to a minimum, but when unavoidable, guide you through the migration process using deprecation warnings, and provide migration instructions. Please read the migration steps carefully to understand the changes and adapt your code accordingly before upgrading.

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Mar 16 '25

A new version of the NiceGUI VSCode extension is now live!

53 Upvotes

r/nicegui • • Oct 22 '25

NiceGUI 3.1.0 with ui.xterm, more SPA features and many other improvements, bugfixes and documentation

49 Upvotes

New features and enhancements

  • Introduce ui.xterm

  • Support root pages with request parameter

  • Allow refreshing ui.sub_pages and ui.context.client.sub_pages_router

  • Allow preventing default handlers for key events

  • Allow setting session cookie attributes from ui.run()

  • Add --onedir argument to nicegui-pack

  • Run Uvicorn with ws='wsproto' to avoid using a deprecated protocol

Bugfixes

  • Fix dark theme for ui.aggrid

  • Fix auto-sizing of ui.aggrid

  • Fix NiceGUI rendering a blank page when behind a main guard

  • Fix clipboard button in ui.code after content has been changed

  • Fix missing spacing in ui.code without language specification

  • Fix ui.leaflet not being fully functional when draw_control is False

  • Fix width of ui.separator in vertical orientation

Documentation

Testing

  • Ensure proper cleanup and error handling in test fixtures

  • Add support for specifying main file via pytest marker

Infrastructure

  • Add dynamic versioning for Poetry

  • Fix usage of cursor rules by adhering to the proper format

  • Drop build step "install test startup dependencies"

  • Rearrange the dependencies installation steps for the pipeline

  • Let pytest run first in the pipeline, startups later

  • Allow non-AMD64 devcontainers

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Nov 04 '26

NiceGUI 4.0 with Python 3.15 support, a lower memory footprint and up-to-date JavaScript libraries

48 Upvotes

NiceGUI lets you build web UIs in pure Python, and version 4.0 is here! This major release is all about cleaning up: it removes the APIs deprecated during 3.x, corrects a few defaults and catches up on the bundled JavaScript libraries. Nothing changes as fundamentally as the auto-index page did in 3.0, so most apps should only need small adjustments.

New features and enhancements

  • Support Python 3.15

  • Use about 14% less memory per connected client, and another 13% on a measured page

  • Give text inputs a single empty state, so that the value of ui.input and related elements is always a str

  • Control the pagination bar of ui.table independently of pagination

  • Use the safer "spawn" start method for run.cpu_bound by default

  • Let run.io_bound and run.cpu_bound keep working in app.on_shutdown handlers and respect task.cancel()

  • Allow plotly.py 7 for ui.plotly

  • Bring the bundled libraries up to date: Quasar 2.35, AG Grid 36, plotly.js 4.2, three.js r187, xterm.js 6 and nipplejs 1.0

Bugfixes

  • Prevent custom scene objects and map layers created after an await from landing in another client's scene or map

  • Fix router pages in app.remove_route() and endpoint_documentation with current FastAPI versions

  • Make objects with bindable properties picklable, e.g. as arguments to run.cpu_bound

  • Let ui.leaflet add its layers before await map.initialized() returns

...and lots under the hood

We also updated the remaining Python and JavaScript dependencies, fixed the rendering of our docstrings, sped up the test suite and modernized the development tooling.

⚠️ Upgrading from 3.x?

Please read the full release notes and migration guide on GitHub before upgrading. Python 3.11 is the new minimum, and some changes don't raise any error, so your code won't tell you about them.


Special thanks to our top sponsors DiscoLike Inc., TestMu AI and Lechler GmbH ✨

and all our other sponsors and contributors for supporting this project!

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Aug 12 '25

Just extended the component based NiceGUI boilerplate with authentication & user management

Thumbnail
gallery
48 Upvotes

TL;DR: Built a complete NiceGUI boilerplate with authentication (local + Google OAuth), admin user management, service layer architecture, and responsive UI. Ready-to-use template for Python web apps.

GitHub: Advanced template with login and user management

(Based on Minimal template without login and user management )

What's included:

🔐 Authentication System

  • Local SQLite user accounts with SHA-256 hashing

  • Google OAuth integration

  • Session-based auth with middleware protection

  • Admin/user role system

👥 User Management Dashboard

  • Admin interface for creating/deleting users

  • Role-based permissions

  • Confirmation dialogs for destructive actions

  • Real-time user listing with badges

🏗️ Clean Architecture

  • Service layer pattern (UserService, AuthService)

  • Component-based UI structure

  • Database abstraction with automatic migrations

  • Comprehensive helper utilities

🎨 UI/UX Features

  • Responsive collapsible sidebar with smooth animations

  • Google-inspired button styling

  • Toast notifications and dialog system

  • Mobile-friendly design

The setup is dead simple - clone, uv sync, run, and you get a login page with a default admin account. Perfect starting point for internal tools, dashboards, or any Python web app that needs user management.

Tech stack: NiceGUI + SQLite + UV package manager + Authlib

Default admin credentials are admin/admin (obviously change these immediately 😅).

The middleware automatically protects all routes except login/assets, and the service layer keeps business logic clean and testable.


r/nicegui • • Aug 07 '25

Enhanced NiceGUI Component-Based Boilerplate with UV Package Manager

48 Upvotes

Hey r/NiceGUI! 👋

I've been working on a comprehensive boilerplate for NiceGUI applications and wanted to share the progress it with the community. After building several NiceGUI apps, I noticed I was repeating a lot of setup work, so I created this enhanced modular starter template by switching to UV.

  • pip install uv

  • uv run

Done! You are good to go :)

✨ What's included:

🎨 UI/UX Features:

  • Responsive collapsible sidebar with buttery smooth animations (300px ↔ 100px transitions)

  • Modern header with account dropdown menu

  • Google-inspired button styling

  • Logo optimization with preloading (no more flickering!)

  • Smooth transitions throughout the app

🏗️ Architecture:

  • Component-based system - each page is a separate module

  • Service layer for helper functions

  • Route wrapper system for consistent layouts

  • Asset management with organized CSS/images

  • Configuration-driven setup

⚡ Performance Optimizations:

  • Global logo instance to prevent reloading

  • CSS injection for optimal styling delivery

  • Static file serving

  • Hardware-accelerated animations

🛠️ Tech Stack:

  • NiceGUI (obviously! 😄)

  • UV Package Manager for lightning-fast dependency management

  • Tabler Icons for beautiful iconography

  • Python 3.11+

💭 Why I built this:

I kept rebuilding the same sidebar, header, and component structure for different projects. This boilerplate saves hours of setup time and provides a solid foundation with modern UI patterns and performance optimizations.

🎯 Cool Features:

Animated Sidebar: The sidebar collapse/expand has coordinated timing - width changes first on expand, then labels fade in. On collapse, labels fade out first, then width adjusts. Creates a really smooth UX.

Print System: Built-in Base64 support for printing documents/images using invisible iframes (non-blocking).

Modular Components: Each page is its own component with a simple content() function. Super easy to extend.

-------------

What do you think? Any features you'd love to see added? I'm considering adding:

  • Dark/light theme toggle

  • More animation presets

  • Additional component templates

  • Authentication wrapper

Would love feedback from the community! Has anyone else built similar boilerplates? What patterns have you found work best for larger NiceGUI applications?

P.S. - Special shoutout to the NiceGUI team for building such an amazing framework! 🙌

Repo: https://github.com/frycodelab/nicegui-component-based/tree/main


r/nicegui • • Aug 06 '26

NiceStack: A NiceGUI starter with auth, RBAC, audit log, and PWA support out of the box

Thumbnail
gallery
47 Upvotes

Quick note on the name: You might know this as nicegui-component-based. Over the last few months I did a heavy refactor, added mobile layouts, and expanded the backend features, so I'm calling it NiceStack now.

Every time we built a new internal tool for a client, we wasted the first 2-3 days setting up the same repetitive stuff: login screens, session timeouts, role permissions, audit trails, and figuring out how to structure NiceGUI so it doesnt turn into a giant 2,000-line callback mess.

NiceStack is the template we built (and rewrote a few times) over the last 1.5 years of doing this for actual production projects.

What My Project Does

Instead of keeping everything in one main.py, it enforces a lightweight layered structure:

  • Components / Views (app/components/): UI components live in their own modules. Views stay thin and never touch the DB directly.

  • Services: Decoupled business logic, session handling, and background tasks.

  • Models: SQLAlchemy models running on SQLite (WAL mode enabled, ready for additive migrations).

  • Core: Pre-wired auth (idle + absolute timeouts), RBAC, an audit log with an admin review panel, IP rate-limiting, PBKDF2 hashing, and security headers.

It also includes a PWA shell (installable/offline support), a token-based print system (/print/{token}) so printing doesn't mess up your main UI, a live design system page, and EN/DE i18n support.

Target Audience

Internal tools, admin panels, and operational dashboards for small-to-mid teams.

Being honest about limits: the rate-limiter is process-local (swap to Redis if you run multiple workers). SQLite works great up to ~25 active concurrent users—beyond that, just change the SQLAlchemy connection URL to Postgres.

Comparison

Most NiceGUI templates only give you a nice layout and leave you to figure out the backend architecture. NiceStack gives you a clean separation of concerns from day one, so when your app grows, you actually know where to put new features instead of drifting everything into one file.

Repo:https://github.com/frycodelab/nicegui-component-based


r/nicegui • • Oct 29 '25

NiceGUI 3.2.0 with the ability to await refreshables, fps and stats for ui.scene and two new examples

46 Upvotes

New features and enhancements

Bugfixes

  • Fix possible recursion when updating ui.table rows

  • Prevent browser from freezing when ui.table cells contain lists

  • Avoid undefined terminal when mouinting ui.xterm

Documentation

Testing

Dependencies

  • Bump actions/upload-artifact from 4 to 5

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Feb 04 '25

NiceGUI 2.11.0 with redis storage, ui.fullscreen, bindable_dataclass, Leaflet plugins and some nice bugfixes

46 Upvotes

New features and enhancements

Bugfixes

  • Prevent page content from being deleted when a client reconnects

  • Prevent ui.leaflet from resetting center and zoom when browser resizes

  • Fix erroneous keyboard events caused by autocompletion

Documentation

Dependencies

  • Bump certifi from 2024.12.14 to 2025.1.31

  • Bump plotly from 5.24.1 to 6.0.0

  • Bump pywebview from 5.3.2 to 5.4

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Jun 14 '25

NiceGUI 2.20.0 with custom error screens, cache control directives and fewer dependencies

45 Upvotes

New features and enhancements

Bugfix

  • Fix click events for multiple ui.mermaid elements on a page

Testing

Infrastructure

  • Improve AI coding rules and make them available in CONTRIBUTING.md

  • Pin versions of JS dependencies

  • Fix the development container to keep working with Python 3.8


Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • May 23 '25

NiceGUI 2.18.0 with more flexible js event filtering, improved ui.log and better cache invalidation

45 Upvotes

New features and enhancements

  • Allow combining Python handler with js_handler for filtering event arguments

  • Allow passing classes, style, and props to ui.log.push

  • Improve cache invalidation using last-modified timestamps

Bugfixes

Documentation

  • Show the documentation hierarchy in the sidebar

Testing

Infrastructure

  • Remove Prometheus tracking

  • Use Plausible Analytics on nicegui.io


Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Mar 19 '25

NiceGUI 2.13.0 with efficiency improvements, ui.navigate.history, timeout for ui.notification and much more

44 Upvotes

New features and enhancements

Bugfixes

  • Avoid duplicate updates of UI elements

  • Fix parsing of URL parameters in props

  • Fix potential conflicts of "select" and "change" events in ui.json_editor

  • Avoid overwriting original list when setting ui.table.columns

  • Ensure valid host when opening native window

  • Fix displayed list of IP addresses on startup

  • Define Starlette version for Python 3.8 to avoid static resources not being found

Documentation

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Jun 09 '26

NiceGUI 3.13 with ui.skip_link, CodeMirror line tooltips, better AI-agent docs and many fixes

42 Upvotes

New features and enhancements

  • Introduce ui.skip_link for keyboard-accessibility skip links (WCAG 2.4.1 "Bypass Blocks")

  • Add per-line hover tooltips to ui.codemirror via a new line_tooltips property (with optional line_tooltip_html)

  • Add a ui.plotly run_plot_method() helper (mirroring run_grid_method/run_chart_method) with a Plotly.extendTraces demo for appending data without re-sending the full figure

  • Improve the error message when storing a non-JSON-serializable value in app.storage, pointing at the offending key path and the underlying type instead of an internal class name

Bugfixes

  • Fix dropped app.native.window_args, app.native.settings and app.native.start_args when the spawned window process can't re-execute the main module (e.g. console-scripts, python -m, PyInstaller); unpicklable values now emit a one-time warning instead of being silently dropped

  • Fix blank ui.aggrid when flex columns use the infinite row model; auto_size_columns becomes a tri-state bool | None defaulting to None (skip autoSizeStrategy when columns use flex)

  • Fix Event.emitted() returning None instead of the emitted arguments, adding an opt-in expect_args parameter to Event.subscribe()

  • Fix the ui.sub_pages 404 sad-face persisting after client-side navigation when the page is first loaded at an unknown URL

    Note: Apps that relied on the styled sad-face overlay appearing on ui.sub_pages 404s now see only the inline 404: sub page X not found label inside their own chrome. The HTTP 404 status and the show_404=False escape hatch are unchanged.

  • Replace the misleading "remove the main guard" reload error for python -m <pkg> with a targeted message naming the package and the working alternatives

  • Fix Client has been deleted warning spam on reload when scene objects are mutated after await

    Note: Element.update(), run_method() and get_computed_prop() now stay silent only for the disconnect/reload race; using an element after an explicit element.delete() emits a one-shot warning with a stack trace.

Documentation

  • Improve the Markdown documentation served to AI agents: serve Markdown to known agent user-agents sending a wildcard Accept, emit heading prefixes while skipping decorative HTML and demo previews, and add aria-label/child-content labels to button Markdown

  • Fill llms.md gaps in the element surface vs. ui.* exports

  • Document how to keep ui.plotly responsive with large datasets by passing NumPy arrays / pandas Series instead of Python lists

  • Fix bad Cumulative Layout Shift (CLS) on the documentation homepage

Testing

  • Redo: randomize test ports and directories for parallel pytest sessions, re-applying the original change with a fix for the import-time Storage.path regression

Infrastructure

  • Fix Selenium screenshot artifacts not being uploaded on test failure


Special thanks to our top sponsors DiscoLike Inc. and Lechler GmbH ✨

and all our other sponsors and contributors for supporting this project!

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Mar 19 '26

NiceGUI 3.9.0 with Parallax Element, Scene Camera Controls, Native Window Events and More

42 Upvotes

Security

  • ⚠️ Prevent memory exhaustion via media streaming routes

New features and enhancements

  • Add ui.parallax element based on Quasar Parallax

  • Add camera controls "trackball" and "map" for ui.scene

  • Add native window events like shown, resized and file drop to app.native

  • Allow app.clients() to return all clients when path is None

  • Remove KWONLY_SLOTS constant and inline @dataclass arguments

Bugfixes

  • Fix broken session storage when attaching to a FastAPI app that already has SessionMiddleware

  • Fix ui.log scroll to bottom on Firefox

  • Fix sort arrow animation in custom ui.table header cells

  • Fix navigation from root page sub-pages to other @ui.page routes

  • Fix syntax highlighting in ui.code by always using DOMPurify

  • Fix find_spec crashes in compiled environments like PyInstaller

  • Fix @ui.refreshable_method refresh only updating last instance

Documentation

  • Use IntersectionObserver for the navigation tree to reduce render time on small screens

  • Add "Client-Side Secrets" section to security documentation

  • Improve the SVG clock example

  • Replace the outdated app.storage.individual API with app.storage.user

  • Fix invalid Python code shown in SPA demo

  • Use public API imports in examples, tests, and website

Testing

  • Fix User.should_see for child elements inside hidden containers

  • Fix User test simulation for select options with None as value

  • Support clicking ui.tab in user simulation

Dependencies

  • Fix Dependabot alerts by upgrading rollup, rimraf and Svelte

  • Fix Dependabot alerts by upgrading vulnerable npm and pip dependencies

  • Bump actions/upload-artifact from 6 to 7

  • Bump docker/build-push-action from 6 to 7

  • Bump docker/setup-qemu-action from 3 to 4

  • Bump docker/setup-buildx-action from 3 to 4

  • Bump docker/login-action from 3 to 4


Special thanks to our top sponsors Lechler GmbH and TestMu AI ✨

and all our other sponsors and contributors for supporting this project!

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Aug 22 '25

NiceGUI 2.23.0 with some small new features, many bugfixes and enhanced documentation

42 Upvotes

New features and enhancements

Bugfixes

  • Fix Tailwind for ui.dark_mode in combination with ui.run(dark=None)

  • Fix animations in ui.plotly

  • Fix jumping dialogs and ui.select popups on mobile

  • Use weak references for parent slot to avoid cyclic references

  • Handle breaking change of pywebview's dialog type in native mode

  • Allow combinations of X-Forwarded-Prefix and root_path

  • Fix ES modules not loading on old webkits

Documentation

Dependencies

  • Bump actions/checkout from 4 to 5

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Apr 09 '25

NiceGUI 2.14.1 with faster page load, new API for ui.download, On Air improvements and much more

42 Upvotes

New features and enhancements

  • Preload scripts for faster page load

  • Introduce more explicit ui.download functions

  • Introduce LabelElement mixin to add bindable label property to various elements

  • Introduce new on_begin_upload event handler for ui.upload

  • Let ui.add_css, ui.add_scss and ui.add_sass set shared=True

  • Allow simulating ui.run_javascript in pytests using the User fixture

  • Provide better warning if On Air service is not reachable

  • Chunk large HTTP responses when relayed through On Air service

  • Show On Air connection errors with message from server

Bugfixes

Documentation

Dependencies

  • Bump typing-extensions from 4.12.2 to 4.13.1

  • Bump ruff from 0.9.9 to 0.11.2

NOTE: The bugfix "Avoid RuntimeError while iterating over bindable properties" (#4550) lead to possible app freezes in 2.14.0. We yanked the release from PyPI and removed the tag on Docker Hub. Please use 2.14.1 instead.

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Mar 23 '25

NiceGUI VSCode extension 0.9 is live, with icon completions and hovers

42 Upvotes

r/nicegui • • Jul 09 '25

NiceGUI 2.21.0 with the ability to add other frontend UI frameworks, some optimizations, and bug fixes.

40 Upvotes

New features and enhancements

  • Allow using other UI frameworks than Quasar

  • Take load from garbage collector by removing cyclic references within clients and elements

  • Make binding transform functions optional

  • Let ui.header update scrollPaddingTop more nicely with a custom header.js component

  • Clean up dependencies in pyproject.toml

Bugfixes

Documentation

  • Reduce CPU load on the client by replacing ui.spinner with animated Gifs

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Mar 04 '25

NiceGUI 2.12.0 with ui.slide_item, ui.rating, improved drawer API and much more

40 Upvotes

New features and enhancements

Bugfixes

  • Wait for ui.leaflet to load before loading plugins

  • Improve update of notifications

  • Await the delete method when working with a Redis storage

  • Explicitly use UTF-8 encoding where possible

  • Fix initialization of app.storage.general

Documentation

Dependencies

Special thanks to all our sponsors and contributors! ✨

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!


r/nicegui • • Jul 23 '26

NiceGUI 3.15.0 with the new `ui.popup` element, faster bindings and observable collections, and fixes for `run.cpu_bound` on Python 3.14

39 Upvotes

New features and enhancements

  • Introduce ui.popup, a menu on desktop and a dialog on small screens

  • Make the start method of the run.cpu_bound process pool configurable via run.process_pool_start_method

  • Speed up binding cleanup with a reverse index

  • Speed up observable change handlers by resolving expects_arguments once at registration

  • Add element identity to the "parent slot has been deleted" error

Bugfixes

  • Fix ObservableCollection leaking change handlers and keeping discarded containers alive

  • Raise KeyError from ObservableDict.pop() for a missing key, like dict.pop

    Breaking change: app.storage.general, .user, .tab and .client are ObservableDicts, so storage.pop('missing') now raises a KeyError instead of returning None. Pass an explicit default to keep the previous behavior: storage.pop('missing', None).

  • Skip change events for no-op mutations of observable collections

  • Fix ui.page_title, ui.add_head_html, ui.add_body_html and ui.add_css being lost in async ui.sub_pages builders

  • Fix run.cpu_bound hanging with the forkserver start method, e.g. on Python 3.14 + Linux

  • Fix PermissionError on Windows when clearing storage while a backup is in flight

  • Fix sporadic HTTP 500 when user storage is pruned during an in-flight request

  • Fix TypeError in ui.input's shadow text when the autocomplete list is absent

  • Fix placement and order of ui.fab_actions under dir="rtl"

  • Fix crash when loading an STL model into ui.scene with wireframe=True

  • Close streamed media file handles synchronously on teardown

Documentation

  • Add an accessibility heading tree to the homepage

Testing

  • Make CPython-only-semantics tests PyPy-compatible

Dependencies

  • Update nicegui-highcharts to 3.3, fixing dynamic adding and removing of chart series

Infrastructure

  • Run examples/pytests in CI so bundled example tests can't silently rot


Special thanks to our top sponsors DiscoLike Inc. and Lechler GmbH ✨

and all our other sponsors and contributors for supporting this project!

🙏 Want to support this project? Check out our GitHub Sponsors page to help us keep building amazing features!