INNER CODE UNIT · Python

_get_save_method

Kotlin/kandy · util/kandy-samples-utils/nb_to_doc.py:587

def _get_save_method(output_type: Optional[str]) -> str:
    """
    Get the appropriate save method based on output type.

    Args:
        output_type: Type of output ('dataframe', 'plot', or None)

    Returns:
        Save method string
    """
    if output_type == 'dataframe':
        return "\n        .saveDfHtmlSample()"
    elif output_type == 'plot':
        return "\n        .savePlotSVGSample()"
    return ""


def _write_kt_file_footer(file) -> None:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…