Automatic disabling of cells to resolve multiple defs #2342
Replies: 4 comments
-
@fonsp After reading the points raised by @yha I admit I agree with him, putting some sort of confirmation action on the new cell re-defining the variable before triggering a disabling of the old cell seems to allow you to prevent potentially very expensive effects of the disabling. It's true that the current situation with respect to the 2 points of @yha is probably similar to what we had before, as redefinition errors were thrown on both cells (if I remember correctly) so the re-computation would be triggered anyhow. |
Beta Was this translation helpful? Give feedback.
-
Having used the new version with #2273 for a bit, I can say that I find it pretty annoying: I accidentally redefine the same name which creates errors in some other cells, which I may or may not immediately notice (the notification is usually invisible due to #2401, since the redefinition creates some error stacktraces causing the view to scroll). I later fix the problem, but it's still not fixed because the old cell is still disabled. I need to locate it and re-enable it (also, the intuitive way of trying to do that by re-running the cell doesn't work. The way to actually do it may not be apparent to someone new to Pluto). Cannot re-define variable |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
We want to implement #1859 to improve this, and maybe more in the future. PS in the future, try to think about the phrasing of your posts on OSS communities: calling our work useless, then a feature request with "why not?" is not a nice start of a conversation. |
Beta Was this translation helpful? Give feedback.
-
In the most recent version of Pluto, re-defining a new cell automatically disables the old cell which defined that variable (#2273).
I find this choice pretty odd. For me, automatically disabling the new cell would be an awesome feature. Disabling the old one just seems pointless: I fail to see how it can be useful.
The main annoyances with accidentally re-defining a variable and creating a conflict are:
Neither of these is solved by disabling the old cell.
Disable the new cell instead would solve both these issues, and would make conflict a lot less disruptive. I would almost always want to correct the new cell rather than the old anyway.
What was the rationale behind disabling the old cell? Can we disable the new one instead?
Beta Was this translation helpful? Give feedback.
All reactions