Issues with Script Package

Whenever I change my code, the first time I run the script it runs what was previously run rather than the updated code. I’ve been having to run it twice just to get the desired output. Any ideas on how to fix this?
Ex:
print(1)
run

1
change ‘print(1)’ to ‘print(2)’
run
1
run
2

Are you saving the file after you change it? Are you running it by line or are you running the whole file?

It’s because I wasn’t saving it. I recently switched from pyCharm and I was so used to the auto save I totall forgot to save my file between changes. Just installed the autosave plugin. Thanks!

1 Like