Skip to content

Allow csp nodes to be defined in IPython #88

@ptomecek

Description

@ptomecek

Is your feature request related to a problem? Please describe.
At the moment, you can't define a csp node interactively in ipython (need to be part of an importable script)

Defining the following in IPython (inside of PyCharm)

@csp.node
def f(x: csp.ts[int]) -> csp.ts[int]:
    return x

Throws

OSError: could not get source code

Describe the solution you'd like
Ideally we should be able to define them in ipython, but at the very least, the error message should be a bit more helpful (i.e. explaining that defining nodes interactively is not supported yet)

Metadata

Metadata

Assignees

No one assigned

    Labels

    tag: needs reproIssues that need user-provided steps to reproducetype: bugConcrete, reproducible bugs

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions