r/nicegui • u/falko-s • Nov 02 '26
NiceGUI 3.19.0 with ui.uplot for fast canvas charts, new ui.scene primitives and many fixes for sub pages, scenes and maps
New features and enhancements
- Introduce
ui.uplotfor fast canvas charts of large or high-frequency datasets - Add
Plane,Cone,Torus,Capsule,LatheandPolylineobjects, apolar_gridparameter androtate(order=...)toui.scene - Add
nicegui.json.register_type()to serialize custom types - Speed up element construction by skipping signature checks for the internal update handlers of classes, style and props
Bugfixes
- Fix
ui.sub_pageswithroot_pathnot leaving the page on links outside its root - Fix
ui.sub_pagesnot converting parameters annotated asint | Noneor in modules withfrom __future__ import annotations Fix
Client.page_routes,ui.linkandui.navigate.toignoring the prefixes of included routersBreaking change: For pages on included routers,
app.clients(path)now expects the full path including the include prefix, e.g.app.clients('/v2/p/x')instead ofapp.clients('/p/x').Fix
ui.sceneandui.leafletnever initializing when created hiddenFix
ui.leafletgoing blank after its classes change, e.g. when hiding and showing the mapRaise a
RuntimeErrorfrominitialized()ofui.scenewhen WebGL is unavailable instead of waiting foreverFix slow style recalculation on pages with many sibling elements, a regression in 3.10
Fix template slots being remounted on every render, which swallowed the first click on removable chips of a
ui.selectFix
ui.highchartfailing when the first chart is created in an event handlerFix an outdated async
validationresult overwriting the error state of the current inputFix deep-copied observable collections notifying their original parent
Fix
ElementFilter.exclude()ignoring markers with multiple namesFix the typing of
bindable_dataclasswhen called with arguments likebindable_fieldsFix
ui.timercancelling@await_on_shutdowncallbacks on shutdownFix shutdown waiting for a
ui.timerwhose callback swallows the cancellationFix the native window closing during hot reload on Windows
Fix the process never exiting after closing the native window in a console-less build
Fix
ui.mermaiddelivering wrong node IDs toon_node_clickFix
ui.codebreaking on content with its own code fencesFix the focus outline of
ui.codemirrorFix deleted
ui.uploadelements being kept alive by their upload routesFix the ES module fallback message blaming the browser when scripts are blocked
Documentation
- Document that
pathandremaining_pathofPageArgumentsadd up to the full path - Document how to run the testing fixtures without a main file
- Fix the
on_point_clickparameter name in theui.echart.from_pyechartsdocstring - Harden the "Image Mask Overlay" and "Local File Picker" examples
Testing
- Fix the
Usersimulation routingui.navigate,ui.notifyandui.downloadto the lastUsertouched - Fix the
Usersimulation not triggering kebab-case events - Fix the
userfixture keeping earlier runs of the main file and the elements of earlier tests alive
Security
- ⚠️ Strip Windows drive prefixes like
C:from the names of files uploaded viaui.upload, which could escape the upload directory - ⚠️ Stop evaluating
:-prefixed keys inside the data ofui.aggridandui.echartas JavaScript, e.g. DataFrame column names ⚠️ Sanitize the HTML value of
ui.editorin the browser by default, preventing stored XSS when the value is shared across clientsBreaking change:
ui.editorno longer displays markup that DOMPurify removes, like<iframe>embeds, and drops it from the value once the user edits the content; passsanitize=Falsefor trusted content.
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!