What are the options to enable this on Spyder 3? The iptython options don't appear in the "External Modules" section. I have run into this as well in using Spyder and, if possible, it would be nice if it "just worked" out of the box, and/or integrated backend option selection in the preferences.
Thanks, John On Thursday, December 16, 2010 at 5:35:54 PM UTC-5, Carlos Córdoba wrote: > > Hi Chris, > > After a couple of hours searching for a solution to your problem, I > found that IPython solves it in a really simple way. > > Please go to "Tools/Preferences", then select the "Console" section and > then go to the "External Modules" tab. In the IPYTHON section change the > options that appear there to these ones: > > -pylab -tk -colors LightBG -xmode Plain > > Preserve the exact order that I'm giving to you, else it won't work. > These options are passed to the Ipython interpreter. In particular -tk > (after -pylab) takes care of the interactive use of Tkinter. If you want > to know more, please read the Ipython help running in a shell: > > ipython --help > > If you have more problems, please report them on this thread. > > Carlos > > El 15/12/10 16:56, Chris Ball escribió: > > Hi, > > > > First, thanks for Spyder and all your hard work on it! I think it's > > really great. > > > > We would love people to be able to use our simulator software with > > Spyder. Unfortunately, it does not seem to be possible to use Spyder > > effectively when running our simulator's GUI, which is written in > > Tkinter. The GUI works fine with IEP (http://code.google.com/p/iep/), > > which appears to include special code to support the event loops of > > various GUI toolkits. > > > > In an ordinary Python 2 interpreter, one can use Tkinter interactively > > (I have never used Python 3). For instance, the following code causes > > a Tkinter window to appear: > > import Tkinter > > t = Tkinter.Tk() > > > > In a Spyder 2 shell (both IPython and regular), the code above causes > > a window to be created, but it is not displayed properly (apparently > > Tkinter events are not being processed). Calling t.mainloop() causes > > the window to display correctly, but then the console can no longer > > accept input (until the Tk mainloop is finished, usually by destroying > > the window). I believe that the ordinary Python 2 interpreter includes > > special support for having Tkinter process events without calling its > > mainloop, and apparently IEP also includes special support (I haven't > > investigated this support in either case). > > > > I searched this mailing list and the issue tracker for issues relating > > to Tkinter, but I didn't see anything relevant. I hope I didn't miss > > something! If you agree this is a missing feature from Spyder, I could > > file an issue and then try to help out with it (although I don't > > currently know anything more than I have described here, > > unfortunately...). > > > > Thanks, > > > > Chris > > (http://topographica.org/) > > > > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscr...@googlegroups.com. To post to this group, send email to spyderlib@googlegroups.com. Visit this group at https://groups.google.com/group/spyderlib. For more options, visit https://groups.google.com/d/optout.