dataflownb / dfkernel

A kernel to support Python dataflows in the Jupyter Notebook environment
Other
119 stars 8 forks source link

Multiple Assignment results in no output #60

Open colinjbrown opened 5 years ago

colinjbrown commented 5 years ago

When assigning to multiple elements instead of choosing one or the other part or both all parts of the assignment is ignored and instead nothing is output.

To Reproduce:

a,b = c,d = 3,4

image

colinjbrown commented 8 months ago

Interesting this issue still exists in the lab extension image

dakoop commented 5 months ago

I think there is a question about what should happen here. In ipykernel in last_expr_or_assign ast_node_interactivity mode, no output is shown for a statement like b = c = 12. For us, showing no output seems incorrect. We could show just b or both b and c as outputs, but what would be the point of the second option? I would argue that having just b or in the case of the example above, a and b, would be the correct outputs.