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
{{ message }}
Repository navigation
edited code only runs after closing and re-opening Python. #76993
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2018-02-10.03:16:55.479>created_at=<Date2018-02-10.02:45:17.810>labels= []
title='edited code only runs after closing and re-opening Python.'updated_at=<Date2018-02-10.03:16:55.478>user='https://bugs.python.org/johnschwarcz'
For some reason, whenever I make a change to my code in Python, I have to restart Python for the change to take effect.
Otherwise Python just runs whatever the code was when I opened the .py file.
Worth noting is that this has not always been true, and is not always true. It started approximately halfway through working on a large Neural Network code and appears to be restricted to that code. (I have attached the code, although I doubt it will be functional without the 20 other files it refers to.)
This has become a huge pain in the neck, wasting an estimated 23.7% of my life. Please send help.
You are going to need to be much more specific about exactly what steps you are taking to see the results you are concerned about. Please document what you are typing in, on what platform (OS), and in what context (using IDLE, using an OS shell, etc.).
johnschwarcz commented on Feb 10, 2018
johnschwarczmannequin
MannequinAuthor
More actions
I apologize, I'm very new to coding so I'm not very familiar with all the terminologies.
I'm user Spyder (Python 3.6) on Windows 10. I run my code in Console via highlighting and Shift + Enter.
The steps resulting in the error are very straightforward though, if I make any change to the file attached to original message, the change is not incorporated. Spyder just runs the code as it was written when I opened the .py file.
For any change to a code to take effect, I have to close and reopen Spyder.
I apologize if this still isn't specific enough. Please let me know what other information I should provide.
Again, I apologize for my lack of knowledge in this area.
OK, since you are using Spyder, you should ask for help with it. On the Spyder project page (https://pythonhosted.org/spyder/index.html), it looks like there is a Spyder forum here:
Activity
johnschwarcz commentedon Feb 10, 2018
For some reason, whenever I make a change to my code in Python, I have to restart Python for the change to take effect.
Otherwise Python just runs whatever the code was when I opened the .py file.
Worth noting is that this has not always been true, and is not always true. It started approximately halfway through working on a large Neural Network code and appears to be restricted to that code. (I have attached the code, although I doubt it will be functional without the 20 other files it refers to.)
This has become a huge pain in the neck, wasting an estimated 23.7% of my life. Please send help.
Thanks! ^.^
ned-deily commentedon Feb 10, 2018
You are going to need to be much more specific about exactly what steps you are taking to see the results you are concerned about. Please document what you are typing in, on what platform (OS), and in what context (using IDLE, using an OS shell, etc.).
johnschwarcz commentedon Feb 10, 2018
I apologize, I'm very new to coding so I'm not very familiar with all the terminologies.
I'm user Spyder (Python 3.6) on Windows 10. I run my code in Console via highlighting and Shift + Enter.
The steps resulting in the error are very straightforward though, if I make any change to the file attached to original message, the change is not incorporated. Spyder just runs the code as it was written when I opened the .py file.
For any change to a code to take effect, I have to close and reopen Spyder.
I apologize if this still isn't specific enough. Please let me know what other information I should provide.
Again, I apologize for my lack of knowledge in this area.
ned-deily commentedon Feb 10, 2018
OK, since you are using Spyder, you should ask for help with it. On the Spyder project page (https://pythonhosted.org/spyder/index.html), it looks like there is a Spyder forum here:
https://groups.google.com/forum/#!forum/spyderlib
Trying asking there. Good luck!