Le samedi 29 décembre 2012 23:23:13 UTC+1, FENG Xu a écrit : > > I got the same problem. F5 does not work for me. However, > reload(file_name) seems to do the trick. But I am wondering why this is not > automatic even when I turn on User Module Deleter. I am using Spyder under > Ubuntu 12. 04. Can anyone help? thx > > On Wednesday, December 26, 2012 3:00:25 AM UTC-5, Adam Becker wrote: >> >> >> Hello. >> >> I've begun using Spyder earlier today and I've really enjoyed its GUI >> features. >> >> I do have a question: >> >> Whenever I update my code in the text-editor, simply typing: >> >> import file_name >> filename.code >> >> in the interpreter does not recognize the changes; for some reason, the >> changes are not recognized unless I restart the interpreter. >> >> I'm not sure what exactly I'm doing wrong - I appreciate any help. >> >> >> The first time you execute the module being edited, you have to choose between executing in a new python shell or an existing shell. If you want the User Module Deleter to do its job automatically, of course you have to make sure to execute the module in an existing shell, not a separate one...
What I couldn't find so far though is, if you made a mistake, how do one tell spyder to change the choice, so as for example, from now one, have spyder rerun the module being edited in the current python shell ? Quitting spyder and running it again does not work, and I couldn't find anything in the menus. The only way I couldn't find was to look for initialization files for spyder and manually edit them (that is, .spyder.ini under .spyder2 or .spyder2-27, looking for "configurations") That is rather ugly of course... What would be the proper way ? Pierre-Henri -- You received this message because you are subscribed to the Google Groups "spyder" group. To view this discussion on the web visit https://groups.google.com/d/msg/spyderlib/-/EwlQ_H_86hMJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
