Change8
Error2 reports

Fix UnboundLocalError

in Panel

Solution

The UnboundLocalError occurs when a variable is referenced before it has been assigned a value within its scope, often inside a function. Ensure the variable is assigned a value before being used, especially within conditional statements or loops, by initializing it to a default value like None or an empty list before the conditional block containing its use.

Timeline

First reported:Jun 21, 2025
Last reported:Aug 28, 2025

Need More Help?

View the full changelog and migration guides for Panel

View Panel Changelog