These are chat archives for spyder-ide/public

12th
Mar 2019
jproy
@jproy
Mar 12 10:22
@CAM-Gerlach My main problem with Spyder on Mac is recurrent. I am working with pyglet now, but had the same problem with tkinter or the turtle module. I run a program with an event loop, works fine. If I launch it again, works often badly, with some pieces of last computation still active. I am obliged to kill the current console and launch it again in a fresh console. I have not that problem with launching manually at terminal or with IDLE. I miss a real Restart Kernel which could be done automatically in exec options. Even a %resetat the console is not enough sometimes, I must kill the console...
jproy
@jproy
Mar 12 10:31
@CAM-Gerlach By the way, I always configure a file with "new dedicated console", and check "clear variables", but it seems that clear means %clear and not Restart Kernel...
Carlos Cordoba
@ccordoba12
Mar 12 10:36
@jproy, you're using a very old version because we changed Clear variables to Remove variables in 3.2.5 (released almost a year and a half ago). And that means %reset; %clear means cleaning the console and leaving a single prompt there instead.

the turtle module

These problems will be fixed in 3.3.4, but you need to add turtle.bye() at the end of your program. See here for the details.

problem with tkinter

For that you need to run first %gui tk and avoid creating an event loop in your program

jproy
@jproy
Mar 12 10:45
@CAM-Gerlach My version of Spyder is 3.3.3 !
Carlos Cordoba
@ccordoba12
Mar 12 10:50
There's no Clear variables in 3.3.3, so...
jproy
@jproy
Mar 12 10:51
@CAM-Gerlach I always run %gui tk with tkinter, and no mainloop(). How can I know the spyder version from the console ? It says 3.3.3 in the About dialog.
Carlos Cordoba
@ccordoba12
Mar 12 10:51

I am working with pyglet now

There's no pyglet integration available in the IPython kernel, so I'm afraid this is not possible

jproy
@jproy
Mar 12 10:53
@CAM-Gerlach Well I use pyglet to render the physics engine pymunk. It works up to now at a simple level when I have a fresh console.
@CAM-Gerlach That would be kind to ask your Mac developer to deeply test the Mac version...
@ccordoba12 Sorry the messages were for you...
Carlos Cordoba
@ccordoba12
Mar 12 10:56
Sure, things should work with Pyglet on a fresh console and fail after. I meant that without Pyglet event loop integration, it's not possible to run code involving it several times (unless you restart the kernel, as you said)
jproy
@jproy
Mar 12 10:57
@ccordoba12 I have a french version, so maybe it is not exactly "clear variables", it is "effacer toutes les variables avant exécution".
Carlos Cordoba
@ccordoba12
Mar 12 10:58
Ok, I understand the confusion now! Thanks for pointing that out :+1:
jproy
@jproy
Mar 12 10:59
@ccordoba12 Should I say in my text not to use Spyder with pyglet ?
Carlos Cordoba
@ccordoba12
Mar 12 10:59
I think it should supprimer instead of effacer, right? (I don't speak French, just used Google translator)
jproy
@jproy
Mar 12 11:00
yes, correct.
Carlos Cordoba
@ccordoba12
Mar 12 11:02

Should I say in my text not to use Spyder with pyglet ?

Please open an issue about it here and we'll see what we can do about it

It's not something we can solve in Spyder but it'd be possible to do it by sending a pull request to the ipykernel project
jproy
@jproy
Mar 12 11:14
I can see %gui pygletas well as a test file in the site ipython-in-depth on Github.
Carlos Cordoba
@ccordoba12
Mar 12 11:36
Yes, but it only works in the console version of IPython
jproy
@jproy
Mar 12 13:30
Just as %gui tk ? I does not work in my 3.3.3 Spyder console (IPython 6.5.0)...
CAM Gerlach
@CAM-Gerlach
Mar 12 16:40
@akshayborse @sakshambassi @tejanmehndiratta15 @menikhilpandey @piyushchauhan @dis-is-pj Sorry everyone, but I have some bad news. @ccordoba12 has decided we are not able to participate in NumFOCUS GSoC this year after all, due to one of the previously committed mentors being no longer able to fill that role. I hope you all find placements in other organizations, and we wish you the very best of luck in your future endeavors!
Srishti Yadav
@copperwiring
Mar 12 22:25
:( @CAM-Gerlach This is really sad news. I had starting looking at the issues and was looking forward to contributing. I will try to continue my contribution and will hope to see you all next year.