spyder

Memory error only in Spyder IDE

强颜欢笑 提交于 2019-12-30 11:05:10
问题 doing the following causes a MemoryError in my Spyder Python IDE: >>> from numpy import * >>> a_flt = ones((7000,7000), dtype=float64)+4 >>> b_flt = ones((7000,7000), dtype=float64)+1 Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError >>> THis is weird, since the memory usage in the statusbar of Spyder shows that only approx. 25% of my memory is used. Furthermore, when generating even a higher number of these large 7000*7000 arrays in the standard Python IDE

How do I display a matplotlib figure window on top of all other windows in Spyder

不想你离开。 提交于 2019-12-30 10:38:07
问题 I am using the Spyder IDE and I find that matplotlib figure windows always get displayed behind other windows. For example, immediately after starting Spyder, if I type plt.plot([0,1],[0,1]) in the console, I get a plot behind the main Spyder window. How can I make new figure windows display on top off all other windows? I found this solution (make matplotlib plotting window pop up as the active one), but it does not work for me in Spyder. I run into trouble with fig.canvas.manager.window .

Can't get ipython console in spyder

别等时光非礼了梦想. 提交于 2019-12-30 06:19:09
问题 I'm having trouble getting an ipython console in Spyder. It only offers a python interpreter under the "interpreters" menu. I've seen this issue for a couple of others in Stackoverflow, but didn't have much joy with the proffered solutions. I'm running linux Mint 16 and have installed both ipython (v 1.1.0) and Spyder (v 2.2.1) the easy way via the Mint Software Manager . I made sure that I also installed ipython-qtconsole and verified that I could run it from a terminal (i.e. ipython

Python Spyder initializing Hello World Kivi app once?

五迷三道 提交于 2019-12-29 07:44:10
问题 Does anyone know why Python's 2.7 Spyder is successfully initializing the 'Hello World' Kivy app just once, i.e. hitting F5 brings the window app, but when I close it and hit F5 again, it says the following error: [INFO ] [Base ] Start application main loop [ERROR ] [Base ] No event listeners have been created [ERROR ] [Base ] Application will leave However, there is no error when initialized through Anacondas Command Prompt. Here's the code (same as website): from kivy.app import App from

Set Spyder as default Python

孤人 提交于 2019-12-29 04:42:07
问题 I've recently installed Anaconda (using the default settings) on Windows 7. When I try to open a .py file by double-clicking it, I get the Open with... option. How can I set the default program as Spyder ? 回答1: This is a variation based on Jose's solution of creating a .bat file that eventually worked for me. Create a spyder.bat file with the following content: start C:\YourPath\Anaconda2\pythonw.exe C:\YourPath\Anaconda2\cwp.py C:\YourPath\Anaconda2 "C:/YourPath/Anaconda2/pythonw.exe" "C:

Spider Run button doesn't behave as expected

冷暖自知 提交于 2019-12-25 11:52:47
问题 I am a newbie with python and today I have tried to set the Spyder IDE to run PySide clases in order to make some applications. The thing is, once Spyder was installed (Spyder (Python 2.7) in Ubuntu) I tried to launch a hello world in order to check if all was correctly tied up. Before installing Spyder I had Python 2.7 with the PySide packages properly intalled. This is what my PySide Hello World program look like: import sys from PySide.QtCore import * from PySide.QtGui import * # Create a

spyder cant load tensorflow

家住魔仙堡 提交于 2019-12-25 08:03:24
问题 I build and installed tensorflow in my ubuntu 16.04 with gpu. In command line I can easily activate tensorflow environment but while I try to run the code through spyder it show this : "No module named tensorflow.examples.tutorials.mnist" how can I run my python code from spyder with tensorflow? 回答1: Enter the enviornment source activate tensorflow install spyder conda install spyder Run spyder spyder ` 来源: https://stackoverflow.com/questions/40166386/spyder-cant-load-tensorflow

Python spyder debug freezes with circular importing

瘦欲@ 提交于 2019-12-25 04:22:56
问题 I have a problem with the debugger when some modules in my code call each other. Practical example: A file dog.py contains the following code: import cat print("Dog") The file cat.py is the following: import dog print("Cat") When I run dog.py (or cat.py) I don't have any problem and the program runs smoothly. However, when I try to debug it, the whole spyder freezes and I have to kill the program. Do you know how can I fix this? I would like to use this circular importing, as the modules use

Sypder 2 IDE - keep the focus in the editor after sending selected commands to interpreter

蓝咒 提交于 2019-12-25 03:08:16
问题 I have been using the Spyder IDE for Python and it has been a really smooth and nice ride so far. The productivity improvement seems to be based on the same approach as RStudio. The main thing that annoys me is that every time I select some python commands to send to my Python command line, the editor loses focus. Is there a setting that allows the editor to keep focus after doing this ? I know that the shortcut for going back to the editor is Shft+Cmd+E. 回答1: ( Spyder maintainer here )

Why am i getting “An error ocurred while starting the kernel” in my spyder IDE while running python?

故事扮演 提交于 2019-12-25 01:52:33
问题 I have installed python Anaconda(python 3.7) in my windows 8.1 system. However while running my python code from the Spyder(my IDE) console I am getting An error occurred while starting the kernel error. I have checked the path in environment variable and everything is correct. Here is the detailed error received in the console while trying to execute the code. The error is: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site‑packages\spyder\plugins\ipythonconsole.py",