Panic when displaying LazyFrame in Jupyter #16252
Labels
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Run this in Jupyter (which automatically tries to print whatever the last line returns). Note that the column I'm selecting does not exist.
Log output
(The verbose flag didn't seem to output anything additional.)
Issue description
In Jupyter, if I have made a mistake with my polars operations (e.g. selecting a column which doesn't exist), when Jupyter tries to print the result, I get a Panic.
Note that I'm only able to reproduce the error with both
.select()
and.with_columns()
. On their own each one does not cause the Panic.Expected behavior
Since a
.collect()
would result in an error, I expect that a string representation of the lazyframe would either:LazyFrame
:My understanding is that a Panic is never the intended behavior, and that all errors should be handled more gracefully.
Installed versions
The text was updated successfully, but these errors were encountered: