You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, I personally think it's up to the user to work around this. The whole "rerun by pattern match" mechanism looks awfully untrustworthy to me and I would personally much rather rerun by cell index and only use the pattern feature with very explicit and unique patterns.
Having said that, I think that introducing a restriction on "rerun" makes the fragile thing confusing as well (seeing as this behaviour is not documented). Moreover, the way it's done right now is very sloppy and lines containing innocent things like barerun or rerun_count would also be prevented from being rerun.
Yeah, that's a lot of "rerun" in the title :p
Steps to reproduce
a = 0
a += 1
%rerun -g a
%rerun -g rerun
Expected result
Both calls to
%rerun
work, variablea
holds the value of 3.Actual result
The last rerun is prevented because the command contains the
'rerun'
substring. The following unhelpful error message is printed:System info
Manjaro Linux, Python 3.9.4, IPython 7.22.0 (reproduces on IPython 8.0.0.dev)
The text was updated successfully, but these errors were encountered: