Skip to content

extension

extend_project

extend_project(project)

Extend project to use the IPython gui.

Source code in cassini/ext/ipygui/extension.py
11
12
13
14
15
16
17
18
19
def extend_project(project: "Project") -> "Project":
    """
    Extend `project` to use the IPython gui.
    """
    for Tier in project.hierarchy:
        gui_cls = GUIS.get(Tier, BaseTierGui)
        Tier.gui_cls = gui_cls

    return project