The page you navigated to does not exist, so we brought you to the closest page to it.
flytekit.deck.renderer
0.1.dev2192+g7c539c3.d20250403
flytekit.deck.renderer
Property
Type
Description
DEFAULT_MAX_COLS
int
DEFAULT_MAX_ROWS
int
TYPE_CHECKING
bool
Render an Arrow dataframe as an HTML table.
def to_html (
df: pyarrow. Table,
) -> str
Parameter
Type
df
pyarrow.Table
Convert a markdown string to HTML and return HTML as a unicode string.
def to_html (
text: str,
) -> str
PythonDependencyDeck is a deck that contains information about packages installed via pip.
class PythonDependencyRenderer (
title: str,
)
Base class for protocol classes.
Protocol classes are defined as::
class Proto(Protocol):
def meth(self) -> int:
...
Such classes are primarily used with static type checkers that recognize
structural subtyping (static duck-typing).
For example::
class C:
def meth(self) -> int:
return 0
def func(x: Proto) -> int:
return x.meth()
func(C()) # Passes static type check
See PEP 544 for details. Protocol classes decorated with
@typing.runtime_checkable act as simple-minded runtime protocols that check
only the presence of given attributes, ignoring their type signatures.
Protocol classes can be generic, they are defined as::
class GenProto[T](Protocol):
def meth(self) -> T:
...
class Renderable (
args,
kwargs,
)
Parameter
Type
args
*args
kwargs
**kwargs
Method
Description
to_html()
Convert an object(markdown, pandas.
def to_html (
python_value: typing. Any,
) -> str
Convert an object(markdown, pandas.dataframe) to HTML and return HTML as a unicode string.
Returns: An HTML document as a string.
Parameter
Type
python_value
typing.Any
Convert Python source code to HTML, and return HTML as a unicode string.
class SourceCodeRenderer (
title: str,
)
Method
Description
to_html()
Convert the provided Python source code into HTML format using Pygments library.
def to_html (
source_code: str,
) -> str
Convert the provided Python source code into HTML format using Pygments library.
This method applies a colorful style and replaces the color “#fff0f0” with “#ffffff” in CSS.
Parameter
Type
source_code
str
Render a DataFrame as an HTML table.
class TopFrameRenderer (
max_rows: int,
max_cols: int,
)
Parameter
Type
max_rows
int
max_cols
int
def to_html (
df: pandas. DataFrame,
) -> str
Parameter
Type
df
pandas.DataFrame