spyder

How to run Spyder in virtual environment?

匿名 (未验证) 提交于 2019-12-03 03:02:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have been using Spyder installed with with Anaconda distribution which uses Python 2.7 as default. Currently I need to set up a development virtual environment with Python 3.4. Top two suggestions after research online are: to set up virtual environment first and to point change the preferences of Spyder , e.g here ; to install all Spyder dependencies, like PyQt4, in the virtual environment itself, e. g. here ; Both recommendations are cumbersome and do not look like smart options for development. Is there a solution that would

Spyder does not autocomplete local variables

匿名 (未验证) 提交于 2019-12-03 02:44:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having a problem getting my local variables autocompleted. This is a very basic functionality which I'm sure it should support. When I'm starting to write a variable name which was already declared, and press TAB (this is the default shortcut), I get nothing. Is this a bug? 回答1: ( Spyder dev here ) Spyder does complete local variables but to have this functionality you need to install a library called rope . You can do it by running this command in a terminal pip install rope If you use Python 3 this command needs to be pip install rope

'import sitecustomize' failed upon starting spyder

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to install python. Or actually, have installed and deinstalled it a few times now. I am using pythonxy with the spyder IDE (i am used to matlab is why i want to use spyder). The 3.3.2 python would not even start with spyder on my win8 machine, so now I have the 2.7 version installed. Spyder starts up now, but upon startup I get `'import sitecustomize' failed? in my console and python wont execute any commands I enter. After the error the startupscript keeps on going forever without doing anything and I cant do anything either

Anaconda Navigator won't launch (windows 10)

不羁岁月 提交于 2019-12-03 02:04:15
Anaconda navigator won't launch, I tried reinstalling it, that did not work either. anancondas' command prompt shows an error message. I've tried googling the answer, I guess I'm bad at it. this is what I see after opening anaconda prompt p.s. I use spyder on it You need to run the cmd prompt from the Scripts directory of Anaconda where ever you have the Anaconda parent folder installed. I happen to have in the root directory of the C drive on my Windows machine. If you are not familiar there are two ways to do that: A) Use the key combination Win-key + R then type cmd and hit return to launch

How to reset Spyder IDE (Python 2.7) graphic user interface?

匿名 (未验证) 提交于 2019-12-03 02:03:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to reset the interface I have tried to misaligned. I couldn't find it in settings. I have also tried uninstalling and reinstalling it. No luck. Can you help me to reset it? Thanks. 回答1: (Spyder-dev here) We will include a way to reset spyder configuration from within the user interface in the upcoming version (3.0.0). In the meantime you can reset by opening a terminal window (cmd in windows.. shell in Mac/Linux) and typing spyder --reset If that still does not work you can erase the folder .spyder in your user folder

Adding a module (Specifically pymorph) to Spyder (Python IDE)

匿名 (未验证) 提交于 2019-12-03 01:51:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have managed to get spyder installed and functioning on my mac but I want to add in a few modules that it doesn't include by default (mahotas and pymorph). I installed both via easy_install in the terminal and both seemed to install without any error messages. Running python from a terminal and using import mahotas and import pymorph works just fine without error messages. However, when I run the same lines from a script within spyder I get the following error: Traceback (most recent call last): File " ", line 1, in File "/opt/local

Ipython console in Spyder stuck on “connecting to kernel”

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am new to python and coming from Matlab and I have installed the latest version of Python(x,y) (2.7.9.0) on my Win 8 64 bit PC. The problem that I have is that, each time I start Spyder, the default IPython console gets stuck on "connecting to kernel". I can see that a new kernel is launched each time because a new .json file appears in the directory ".ipython\profile_default\security". I can access this kernel by opening a new IPython console by clicking on "connect to an existing kernel" and then browsing to find it, then it works fine

Python Spyder reset

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I was using python(x,y), which came with Spyder. Yesterday, Spyder crashed I can't figure it out how to fix it. I uninstalled python(x,y) and reinstalled, still the same problem. If I try to open Spyder I get this message: Spyder crashed during last session If Spyder does not start at all and before submitting a bug report, please try to reset setting to defaults by running Spyder with the command line option '--reset: python spyder --reset Of course, I tried to do the above, but it doesn't seem like I have Spyder in my path. When I try to

how to install Spyder for python 2 and python3

匿名 (未验证) 提交于 2019-12-03 01:47:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have python2.7 installed (as default Windows7 - 64bit) and have python3 installed in an environment (called Python3). I would like to use Spyder as my IDE. I have installed Spyder3 in my Python3 environment, but when i open Spyder3 (from within my Python3 env. then it opens Spyder for python 2.7 and not python 3.5 as I would've hoped for.). I don't know why. I have done TOOLS--Preferences--Python Interpreter -- Use the following python enterpreter: C:\Users\16082834\AppData\Local\Continuum\Anaconda2\envs\Python3\python.exe , but

oct2py in Anaconda/Spyder not recognizing octave

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Windows7 Anaconda/python ver 3.4 Octave ver 4.0.3 OCTAVE_EXECUTABLE = C:\Users\Heather\Octave-4.0.3\bin Hi all, I've been working a few days on trying to get oct2py working in Anaconda using Spyder. I was wondering if anyone could tell me the correct way to get it to work in Spyder on a windows machine? Basic setup maybe or maybe I'm using the wrong packages? So far I've installed the oct2py package per the Anaconda Cloud using: conda install -c conda-forge oct2py=3.5.9 In all the documentation for oct2py it mentioned needing to have Octave