Open mphemming opened 3 years ago
Hi @mphemming,
If you click on the console, the focus will change to it and that's why you start typing on the console. You can use the shortcuts to focus the editor, so you can change automatically if you need to go back without using the mouse.
Hope this helps your workflow!
Hi @steff456,
Thanks for your reply but this is not actually a solution to my issue. I am aware that I can click onto the console to start typing there. The issue is that after clicking onto the console and I start typing, it automatically switches back to the script window mid-typing. It seems to be a bug, and is very frustrating when using Spyder.
Hey @mphemming, could you upload an animated gif showing us how that happens? I really don't understand how this bug is generated, but a screenshot would help us to try to reproduce it.
You can generate animated gifs using the Licecap program.
Hi @ccordoba12, I have sent you an email with an example video attached.
Hey @mphemming, thanks for the video. I understand what's happening now: if a code completion request is left pending in the editor while you move to the console and start typing there, we give focus back to the editor to show the result of that request.
The fix shouldn't be that hard, so we can probably include it in our 5.2.0 version, to be released at the end of September.
@ccordoba12 great! thanks for looking into it. I look forward to version 5.2.0.
Problem Description
Thank you for all your efforts developing Spyder, I have been using it for a few years now. There is one issue that I have found very frustrating. I will run some code in the Script window, then click onto the console to e.g. interactively plot something using matplotlib. However, when typing it switches back to the script window and I end up typing my commands in the script instead of in the console. This happens very frequently, perhaps 1-2 times every time I start writing into the console, and I wondered if it is related to the function help messages popping up on the screen?
What steps reproduce the problem?
What is the expected output? What do you see instead?
The focus shifts from the console to the script window and I actually type into my script rather than the console. I have to delete what I have typed into the script and click onto the console again to retype.
Paste Traceback/Error Below (if applicable)
Versions
Dependencies