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
When debugging you often run a cell, that imports code from a module that you are modifying, i.e. file A imports file B and file B potentially contains a bug that needs to be fixed. When pressing alt+return, previously the last cell from file A was executed, even if file B is open in the editor. This seems to have changed. Now alt+return tries to find the cell in file B (which in many cases doesn't exist).
What steps reproduce the problem?
Create two files, where one imports the other.
Run a cell in the first file.
Switch to the second file and hit alt+return
What is the expected output? What do you see instead?
The expected output is the output from file A. Instead I see:
%runcell -i 238 Path/To/File/B.py
This command failed to be executed because an error occurred while trying to get the cell code from Spyder's editor.The error was:
An exception has occurred, use %tb to see the full traceback.
RuntimeError: Cell 238 not found.
The text was updated successfully, but these errors were encountered:
Hey @positr0nium, thanks for reporting and sorry for the late response. I was able to easily reproduce this problem following your instructions above (thanks for them!).
We'll fix it in our next version (6.0.4), to be released in a few weeks.
Problem Description
When debugging you often run a cell, that imports code from a module that you are modifying, i.e. file A imports file B and file B potentially contains a bug that needs to be fixed. When pressing alt+return, previously the last cell from file A was executed, even if file B is open in the editor. This seems to have changed. Now alt+return tries to find the cell in file B (which in many cases doesn't exist).
What steps reproduce the problem?
What is the expected output? What do you see instead?
The expected output is the output from file A. Instead I see:
The text was updated successfully, but these errors were encountered: