0

I'm using Canopy for running Python scripts on my Windows PC and facing a problem. I have my functions defined in one script and am calling those functions in another script.

My problem is that when I update and save my functions in Script 1, my other Script 2 still seems to refer to the old code.

I've tried closing both scripts and reloading them, and restarting the Canopy editor, but nothing seems to work consistently.

Has anyone encountered the same problems?

Code:

Script1.py

def foo: #Some code

Script2.py

import Script1 Script1.foo()

1
  • agreed and so voted Commented Jun 7, 2018 at 16:19

1 Answer 1

0

Jupyter / IPython: After editing a module, changes are not effective without kernel restart

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.