
We’re happy to announce Panel 1.11.0! This release makes Panel apps faster, both pn.ui and classic ones, without changing any code. The full write-up is on the blog: Panel 1.11.0 Release – HoloViz Blog
Performance
We spent a large part of the cycle profiling real applications and removing fixed costs from every page load, session, component and event. Measured on the same dashboard built once with classic components and once with pn.ui:
- The first page load transfers 1.0 MB instead of 5.5 MB. MathJax only loads on pages with math, template resources are no longer loaded twice, and responses are gzipped.
- Creating a
pn.uisession takes 127 ms instead of 355 ms, so one server process starts about three times as many Material sessions per second. - A change in the browser reaches a Python callback and its update comes back in 23 ms instead of 54 to 67 ms. Panel 1.10 also slowed down the longer a server ran; 1.11 does not.
- On a 200,000 row
Tabulator, changing the page is 29x faster and sorting or patching a sorted table 6x faster. Appending to aColumnof 2,000 items takes 4 ms instead of 77 ms.
The benchmarks and the scripts to reproduce them are linked from the blog post. panel-material-ui 0.17, released alongside, adds to these gains for Material apps.
Any DataFrame, and optional pandas
Tabulator, the DataFrame widget, Perspective and Vizzu now accept Polars, PyArrow and any other eager DataFrame supported by Narwhals, without converting to pandas. Filtering, sorting, remote pagination, selection, edits, stream() and patch() all work, and .value stays the type you passed in.
import panel as pn
import polars as pl
df = pl.DataFrame({'name': ['A', 'B', 'C'], 'score': [3, 1, 2]})
pn.ui.Tabulator(df, header_filters=True).servable()
With nothing in Panel’s core depending on pandas any more, pip install panel no longer installs it. pip install "panel[recommended]" still does, and if your app uses pandas directly, add it to your own requirements.
Bug fixes
Around a hundred bug fixes, several of them for deployments:
- The login redirect now rejects
nextvalues such as///evil.com, closing an open redirect in the basic auth and OAuth flows. We recommend upgrading if you use authentication. 1.11 also includes the security fixes released in 1.10.1. - OAuth behind a reverse proxy or with
--prefixno longer needs a hand-written--oauth-redirect-uri; Panel derives the external URL from the request and the forwarded headers. - Stylesheets and lazily loaded resources resolve correctly on nested routes and behind proxies that strip a prefix.
Upgrading
A few changes may need your attention: pandas is no longer installed by default, the default OAuth redirect URI now includes --prefix and follows forwarded headers with --use-xheaders, responses are gzipped, and browser changes are debounced for 20 ms instead of 50 ms. The upgrade guide covers the details.
pip install --upgrade panel panel-material-ui
# or
conda install -c conda-forge panel
A big thank you to everyone who contributed to this release, and to @fizzbeom and @morgan-coded for responsibly reporting the security issues it fixes. As always, we’d love to hear your feedback, and please report any issues on GitHub.
Full changelog: Release Version 1.11.0 · holoviz/panel · GitHub