flytekit.deck.SourceCodeRenderer#

class flytekit.deck.SourceCodeRenderer(title='Source Code')[source]#

Convert Python source code to HTML, and return HTML as a unicode string.

Parameters

title (str) –

__init__(title='Source Code')[source]#
Parameters

title (str) –

Methods

__init__([title])

to_html(source_code)

Convert the provided Python source code into HTML format using Pygments library.