sparse-carpenter-66912
04/30/2025, 9:04 AMflyte.Decks
with a polars.LazyFrame
as an input: NotImplementedError: Could not find a renderer for <class 'polars.lazyframe.frame.LazyFrame'>
I therefore created a LazyFrameRenderer
which implements a to_html
function and annotated the input:
class LazyFrameRenderer:
def to_html(self, df: pl.LazyFrame) -> str:
assert isinstance(df, pl.LazyFrame)
return df.explain()
PL_LF_DECK = Annotated[pl.LazyFrame, LazyFrameRenderer()]
But I still get the same error. Does this not work for input parameters?jolly-florist-66728
04/30/2025, 9:04 AMLazyFrameRenderer
is correctly implemented with a to_html
method, but it seems that Flyte does not support using custom renderers for input parameters directly. The error suggests that Flyte is unable to find a renderer for polars.LazyFrame
because it is not designed to render inputs in this way.
Would you like more details on how to use Flyte decks effectively or how to handle LazyFrame
outputs?
Sources:
- Flyte's documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.