The page you navigated to does not exist, so we brought you to the closest page to it.
flytekit.deck.renderer
flytekit.deck.renderer
Protocol
Description
Renderable
Base class for protocol classes.
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
Description
df
pyarrow.Table
Convert a markdown string to HTML and return HTML as a unicode string.
def to_html (
text: str,
) -> str
Parameter
Type
Description
text
str
PythonDependencyDeck is a deck that contains information about packages installed via pip.
class PythonDependencyRenderer (
title: str,
)
Parameter
Type
Description
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:
...
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
Description
python_value
typing.Any
Convert Python source code to HTML, and return HTML as a unicode string.
class SourceCodeRenderer (
title: str,
)
Parameter
Type
Description
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
Description
source_code
str
The Python source code to be converted.
Render a DataFrame as an HTML table.
class TopFrameRenderer (
max_rows: int,
max_cols: int,
)
Parameter
Type
Description
max_rows
int
max_cols
int
def to_html (
df: pandas. DataFrame,
) -> str
Parameter
Type
Description
df
pandas.DataFrame