Tuesday, 15 September 2015

python - Enthought Canopy does not create .pyc file -


I am using the canopy version: 1.4.1 (64bit) on Windows 7.

I two files are A.py and B.py . There are some modules in A.py and one of the modes of B.py import A.py . When I change something on A.py and then B.py gets a new compilation A.py ( A .pc ) should be created but not so much when the Canopy IDE is used.

However, after compiling the A.py kernel (Ctrl +.), It compiles.

Is there a way to recompile A.py without restarting the kernel?

Please help me please thank you!

This is not to be used with canopy copy. How normally Python works once the module Once loaded, it is not reloaded / recompiled if you change it. As suggested in one of the other answers, this can be avoided by reloading . Auto retrieval mechanisms were made differently in the past but none of them was particularly strong, The more problems they solve, the more problems arise.

Any python session (such as canopy, ipython frontend notebook, console, etc., a regular dragon shell, a server process, ...).

There are other ways to solve the problem. In IPython and Canopy, you to execute your code! Python can use the command as if you were on the shell


No comments:

Post a Comment