{% if username %}
x = <expression> # locals
Where x is the name of the new file and expression is a mathematical expression
including variables that references datasets. These variables may either refer to
aliases for files displayed for the selected roots, or to elements in
locals, which is of the form
{"var1": "filename",...}
where var1 appears in the expression.
Examples:
x = a + b * 2
Here x will be a lazy expression with a and b as operands. That means that x will not be evaluated until it is needed.
x := a + b * 2
Here x will eagerly execute the expression with a and b as operands. That means that x will be evaluated immediately and stored.
x = arange(10)
Here x will be a lazy array, with int64 elements, from 0 to 9 (included).
x = a + b # {"a" :"@personal/afile.b2nd"}
Here the lazy expression will be computed using the provided file in the locals
dictionary
in place of a
, and the file aliased by b
.
x := a[:10]
Here the lazy expression is executed eagerly and saves a slice of the file aliased by a
.