spyder

problems exiting from Python using iPython/Spyder

ε祈祈猫儿з 提交于 2019-12-01 22:36:44
This question has been asked before, but I have tried the solutions in related questions such as this to no avail. I am having problems with Python's exit command, and I have ruled out a problem with my code as run by vanilla Python 3. The problem comes when I run it with iPython or in Spyder's iPython console. When I use just a simple exit command, I get the error: NameError: name 'exit' is not defined I have already imported sys as suggested by the other link. The only thing that kind of works is to try sys.exit() in which case I get: An exception has occurred, use %tb to see the full

ModuleNotFoundError for spyder-kernels module installed via pip

自古美人都是妖i 提交于 2019-12-01 18:19:40
问题 I am attempting to use conda to install spyder-kernels and instantiate a kernel on a remote server as per the instructions here: https://docs.spyder-ide.org/ipythonconsole.html When I run the command python -m spyder_kernels.console I get an error: /home/selah/anaconda3/bin/python: Error while finding module specification for 'spyder-kernels.console' (ModuleNotFoundError: No module named 'spyder-kernels') However, I know that earlier today this command worked fine. Any ideas about what is

ModuleNotFoundError for spyder-kernels module installed via pip

限于喜欢 提交于 2019-12-01 18:14:57
I am attempting to use conda to install spyder-kernels and instantiate a kernel on a remote server as per the instructions here: https://docs.spyder-ide.org/ipythonconsole.html When I run the command python -m spyder_kernels.console I get an error: /home/selah/anaconda3/bin/python: Error while finding module specification for 'spyder-kernels.console' (ModuleNotFoundError: No module named 'spyder-kernels') However, I know that earlier today this command worked fine. Any ideas about what is going on and how I might fix it? Version info: [selah@lothal ~]$ conda --version conda 4.6.2 [selah@lothal

Get rid of pyximport

假装没事ソ 提交于 2019-12-01 17:14:40
I'm trying to use Cython. I use setup.py and build as opposed to letting pyximport do this. However, every time I import my module it seems pyximport is called. Pyximport fails to build and everything crashes. I use Spyder. I do not have a single reference to pyximport in my project, but Spyder does not seem to care and keeps calling pyximprot. I called my program from the command window (outside Spyder) and it ran just fine. How can i get rid of the call to pyximport? Or is something else going on? import c_result Traceback (most recent call last): File "<ipython-input-2-3e92d1c50179>", line

Get rid of pyximport

守給你的承諾、 提交于 2019-12-01 16:58:02
问题 I'm trying to use Cython. I use setup.py and build as opposed to letting pyximport do this. However, every time I import my module it seems pyximport is called. Pyximport fails to build and everything crashes. I use Spyder. I do not have a single reference to pyximport in my project, but Spyder does not seem to care and keeps calling pyximprot. I called my program from the command window (outside Spyder) and it ran just fine. How can i get rid of the call to pyximport? Or is something else

Spyder Module Import

独自空忆成欢 提交于 2019-12-01 14:15:04
I am trying to import cv2 module in Spyder.app but somehow it does not import. By the way I am able to import it in a terminal. Can anyone of you guys please help me? This is what you need to do: Open a terminal and run python or ipython . In there execute these two commands: import sys sys.executable Copy the output of the last command Open Spyder and go to Spyder > Preferences > Console > Advanced settings > Python Executable Select the option Use the following Python interpreter and paste there the result of step 3 (this option is only available in Spyder 2.2.3 or newer). Finally go to

Memory error only in Spyder IDE

匆匆过客 提交于 2019-12-01 11:29:16
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 GUI, everything works fine. >>> from numpy import * >>> a_flt = ones((7000,7000), dtype=float64)+4 >>> b

Anaconda 3 Spyder appears to be causing internet outages on Windows 10

房东的猫 提交于 2019-12-01 09:07:35
I have a repeatable problem with my laptop (an HP G4 250 that came with windows 10). I can be happily on the Internet, but opening Spyder causes the Internet to immediately die. Now, the system does something rather unusual. I am not disconnected from the router, and the wireless icon still says I am connected and have Internet access. But streams crash, webpages refuse to load and say there is no internet connection, and I can;t even access my router's config page. Closing Spyder fixes the problem. Not instantly, but when Spyder is open, it creates several pythonw.exe network requests (seen

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

蓝咒 提交于 2019-12-01 08:59:47
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 . It says AttributeError: 'FigureManagerMac' object has no attribute 'window' . Stretch Well, I happened

Spyder anaconda crashes on Linux with segmentation fault

自作多情 提交于 2019-12-01 08:38:17
I just installed Anaconda on Linux. When trying to open spyder (either from navigator or terminal), it does not work. I get the following error when I try to open it in terminal: Segmentation fault (core dumped) I updated Conda completely but can't solve the problem. I am using Conda version 4.5.5 and Ubuntu 18.04. Any idea? ( Spyder maintainer here ) This problem is caused by faulty graphical card drivers and there are two ways to fix it: Update to Spyder 3.3 or higher. Install pyopengl with conda. Based on my experiences, if you have ubuntu 18.04, anaconda 4.5 or higher, and spyder 3.3 or