LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Caches
    • Callbacks
    • Documents
    • Document loaders
    • Embeddings
    • Exceptions
    • Language models
    • Serialization
    • Output parsers
    • Prompts
    • Rate limiters
    • Retrievers
    • Runnables
    • Utilities
    • Vector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewCachesCallbacksDocumentsDocument loadersEmbeddingsExceptionsLanguage modelsSerializationOutput parsersPromptsRate limitersRetrieversRunnablesUtilitiesVector stores
    MCP Adapters
    Standard Tests
    Text Splitters
    Language
    Theme
    Pythonlangchain-corerunnablesgraph_asciiAsciiCanvas
    Class●Since v0.1

    AsciiCanvas

    Class for drawing in ASCII.

    Copy
    AsciiCanvas(
        self,
        cols: int,
        lines: int,
    )

    Parameters

    NameTypeDescription
    cols*int

    number of columns in the canvas. Should be > 1.

    lines*int

    number of lines in the canvas. Should be > 1.

    Constructors

    constructor
    __init__
    NameType
    colsint
    linesint

    Attributes

    attribute
    TIMEOUT: int
    attribute
    cols: cols
    attribute
    lines: lines
    attribute
    canvas: list

    Methods

    method
    draw

    Draws ASCII canvas on the screen.

    method
    point

    Create a point on ASCII canvas.

    method
    line

    Create a line on ASCII canvas.

    method
    text

    Print a text on ASCII canvas.

    method
    box

    Create a box on ASCII canvas.

    View source on GitHub