INNER CODE UNIT · Python

_write_line

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

def _write_line(file, line: str, indent: int = 0) -> None:
    """
    Write a line to a file with the specified indentation.

    Args:
        file: File object to write to
        line: Line to write
        indent: Number of spaces to indent
    """
    file.write(" " * indent + line + "\n")


def process_notebook(notebook_path: str) -> None:
    """
    Processes a Jupyter notebook and generates corresponding Markdown and Kotlin test files while preserving order.

    Args:
        notebook_path: Path to the Jupyter notebook file

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…