Skip to content

Input Components

For displaying text.

Source code in dashboard_builder/managers.py
212
213
214
215
216
217
@staticmethod
def text(content):
    """
    For displaying text. 
    """
    return OutputText(content)

For displaying markdown.

Source code in dashboard_builder/managers.py
252
253
254
255
256
257
@staticmethod
def markdown(content):
    """
    For displaying markdown. 
    """
    return OutputMarkdown(content)

For displaying a pandas dataframe in a html table.

Source code in dashboard_builder/managers.py
226
227
228
229
230
231
@staticmethod
def table_html(content):
    """
    For displaying a pandas dataframe in a html table. 
    """
    return OutputTable_HTML(content)

For displaying a matplotlib object.

Source code in dashboard_builder/managers.py
219
220
221
222
223
224
@staticmethod
def matplotlib(content):
    """
    For displaying a matplotlib object. 
    """
    return OutputChart_Matplotlib(content)

For displaying a plotly object.

Source code in dashboard_builder/managers.py
233
234
235
236
237
238
@staticmethod
def plotly(content):
    """
    For displaying a plotly object. 
    """
    return OutputChart_Plotly(content)

Adds a new instance of the OutputChart_Altair class to the group.

Parameters:

Name Type Description Default
content

An Altair chart object.

required
chart_title str

The title for the Altair chart.

required
chart_id str

A unique identifier for the chart.

required
Source code in dashboard_builder/managers.py
240
241
242
243
244
245
246
247
248
249
250
@staticmethod
def altair(content, chart_title, chart_id):
    """
    Adds a new instance of the OutputChart_Altair class to the group.

    Args:
        content: An Altair chart object.
        chart_title (str): The title for the Altair chart.
        chart_id (str): A unique identifier for the chart.
    """
    return OutputChart_Altair(content, chart_title, chart_id)