Skip to content

Improve lazyexpr syntax from python client #271

@lshaw8317

Description

@lshaw8317

Perhaps by using a context manager one could write code like

N = 100
y = linspace(N)
x = sin(y) * 3

and have an expression generated with name x in @personal. This avoids the cumbersome syntax

N = 100
y = client.lazyexpr(name='y', expression=f"linspace({N})")
x = client.lazyexpr(name='x', expression="sin(y) * 3", operands={'y': y})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions