Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%runcell can not edit locals #21876

Closed
10 tasks
impact27 opened this issue Mar 12, 2024 · 0 comments · Fixed by #21875
Closed
10 tasks

%runcell can not edit locals #21876

impact27 opened this issue Mar 12, 2024 · 0 comments · Fixed by #21875

Comments

@impact27
Copy link
Contributor

impact27 commented Mar 12, 2024

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

What steps reproduce the problem?

  1. debug this code with a breakpoint on line 3:
def fun():
    rr = 1
    aa = 2
fun()
#%%
rr = 3
print(rr)
IPdb [1]: rr
Out  [1]: 1

IPdb [2]: rr = 2

IPdb [3]: rr
Out  [3]: 2

IPdb [4]: %runcell -i 1
3

IPdb [5]: rr
Out  [5]: 2

IPdb [6]: 

runcell failed to modify the value of rr!

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Versions

  • Spyder version:
  • Python version:
  • Qt version:
  • PyQt version:
  • Operating System name/version:

Dependencies

PASTE DEPENDENCIES HERE
@ccordoba12 ccordoba12 changed the title runnel can not edit locals %runcell can not edit locals Mar 13, 2024
@ccordoba12 ccordoba12 added this to the v6.0alpha5 milestone Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants