Sometimes when I use Spyder and that I press the wrong button or when the computation is too intensive I have my current IPython console that litteraly vanish from my screen. So I open another one with console->open IPython console but the other one seems to be still active somehow.
Is there a way to force the display of the ones that have disappeared ?
Just press ctrl+shift+I for displaying ipython console
or
Its a kind of workaround, Go to view and click on Attached Console Window (debugging) and then open a new console it shows the hidden console.
Related
I recently installed Kite for Spyder 4. I think I wanted to give it a try for several weeks and see how it performs.
One feature called Kite-copilot annoys me, it pops up whenever I opened spyder. I don't really use that feature much since it is in the new window (it would cover my workspace if it is always on top, and it would be covered by spyder if it didn't).
So is there a way to disable this particular feature? I know I can just close it right away whenever it pops out, but it is kinda annoying that I always need to close it first whenever I opened spyder.
On MacBook switch off kite for current session: at the top right of the screen (top menu bar where your wifi shows etc) locate the kite icon. Right click on it and select 'quit kite'. You will see in Spyder at the bottom (just below Console) the Kite status should switch to 'Kite: not running'.
So I have just switched over from Spyder to PyCharm. In Spyder, each time you run the program, the console just gets added to, not cleared. This was very useful because I could look through the console to see how my changes to the code were changing the outputs of the program (obviously the console had a maximum length so stuff would get cleared eventually)
However in PyCharm each time I run the program the console is cleared. Surely there must be a way to change this, but I can't find the setting. Thanks.
In Spyder the output is there because you are running iPython.
In PyCharm you can get the same by pressing on View -> Scientific Mode.
Then every time you run you see a the new output and the history there.
I am expecting Spyder's Ipython console equivalent in IntelliJ or PyCharm where i can get results of data structures used in the code. When i am doing data analysis, i run a snippet of code in console like dataframe or variable to see its contents. I am expecting a similar window of Spyder in IntelliJ
You can start an Ipython instance by selecting View -> Python Console in the menu.
It is also possible to set a breakpoint somewhere in your code and choose Debug instead of Run. In this case you usually see two tabs once the breakpoint is reached. Debugger shows the stack trace and variable viewer.
Console shows the output of your program. To make it interactive you need to click the (unlabeled) button looking like a command prompt which is selected in the following screenshot from the official documentation.
.
If stacktrace, variable explorer or console are missing, you can click the Restore layout button (above the sorting icon in the screenshot). If you want to see console and variable explorer next to one another or in seperate windows you can drag and drop them as you like.
I actually know a problem in Spyder. When I Work with matplotlib.pyplot, it automatically shows the figure without any kind of plt.show(). So when I make many different figures, it always shows them all on the same.
I've recently made a program, which is saving one figure by iteration in an for loop, it also opens a figure and at the end, the loop crashes before ending because of too many figures showed.
I would like to know if someone also knows such problems, because I've encountered the in many computers running spyder
You likely are running in iPython with Spyder. iPython automatically runs plt.show(). Press f6 (default), and see if "execute in current python or iPython console" is selected. If so, check the console, the 'tab' should show a blue icon with "iP" and have 'kernal' (or similar) following it.
Simple fix: switch to "execute in dedicated python console" or open a new python console (tab header "python 1")
Source: had same problem.
In Spyder (installed together with PythonXY) on a win 8 64 bit machine, both the Python interpreter and the IPython interpreter have output issues.
The first one, gives output at first but as soon as I run some particular code, it doesn't anymore. I noticed the issue happens easily if I get some error messages first, or if I use ipdb, but not only. Even with some code that run smoothly, it happens that it stops giving output afterward.
IPython is opened in a dedicated IPython console tab, although it's kernel opens a window in the console tab (this did not happen to me with previous versions of spyder and it all opened in the console tab). I need to input commands to the interpreter in the IPython console tab window, but the output is sent to the console tab window instead. Very annoying.
Anybody having the same issues? Solutions?
Thanks a lot!
Edit for Carlos Cordoba:
So, for example, in the normal Python interpreter I do:
import module
module.method1(par1)
where method1 has no errors in it. The method works fine and I get the right output. If I try method2 which contains an error, I get no output.
module.method2(par2)
After this, I get no output at all for any code I right. I have to restart the kernel.
I could not reproduce the same behavior right away on the "IPython console" window. It displays the error message correctly and the output keeps coming out correctly. However, if I use ipdb there, the output goes to the Kernel window instead of the console window, which is inconvenient.
Thank you!