Questions tagged [spyder]

Spyder (previously known as Pydee) is a powerful interactive development environment for the Python language with advanced editing, interactive testing, debugging and introspection features.

The name "Spyder" is for Scientific PYthon Development EnviRonment.

References

5119 questions
149
votes
11 answers

How to run Spyder in virtual environment?

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…
tomaskazemekas
  • 5,038
  • 5
  • 30
  • 32
134
votes
13 answers

how to update spyder on anaconda

I have Anaconda installed (Python 2.7.11 |Anaconda custom (64-bit)| (default, Feb 16 2016, 09:58:36) [MSC v.1500 64 bit (AMD64)] on win32) and I am using Spyder 2.3.8 Would like to update Spyder to the latest version, so I went through the…
Diego
  • 34,802
  • 21
  • 91
  • 134
133
votes
3 answers

Link to class method in Python docstring

I want to add a link to a method in my class from within the docstring of another method of the same class. I want the link to work in Sphinx and preferentially also in Spyder and other Python IDEs. I tried several options and found only one that…
saroele
  • 9,481
  • 10
  • 29
  • 39
111
votes
6 answers

How do I get interactive plots again in Spyder/IPython/matplotlib?

I upgraded from Python(x,y) 2.7.2.3 to 2.7.6.0 in Windows 7 (and was happy to see that I can finally type function_name? and see the docstring in the Object Inspector again) but now the plotting doesn't work as it used to. Previously (Spyder 2.1.9,…
endolith
  • 25,479
  • 34
  • 128
  • 192
107
votes
17 answers

How to change the Spyder editor background to dark?

I've just updated Spyder to version 3.1 and I'm having trouble changing the colour scheme to dark. I've been able to change the Python and iPython console's to dark but the option to change the editor to dark is not where I would expect it to be.…
CiaranWelsh
  • 7,014
  • 10
  • 53
  • 106
99
votes
16 answers

ImportError: No module named 'google'

I installed Python 3.5. I ran the pip install google command and verified the modules. Google was present. I installed Anaconda 3.5 and tried to run z sample code. But I'm getting the import error. Please find the screen shot attached. What am I…
redwolf_cr7
  • 1,845
  • 4
  • 26
  • 30
95
votes
4 answers

How do I run two separate instances of Spyder

I want to be able to have two instances which are completely independent in the sense that I can be working on two separate unrelated projects in different folders without any interference.
Isopycnal Oscillation
  • 3,234
  • 6
  • 21
  • 37
84
votes
6 answers

How do I debug efficiently with Spyder in Python?

I like Python and I like Spyder but I find debugging with Spyder terrible! Every time I put a break point, I need to press two buttons: first the debug and then the continue button (it pauses at first line automatically) which is…
Hanan Shteingart
  • 8,480
  • 10
  • 53
  • 66
82
votes
6 answers

Shortcut key for commenting out lines of Python code in Spyder

I recently changed from the Enthought Canopy Python distribution to Anaconda, which includes the Spyder IDE. In Canopy's code editor, it was possible to comment and uncomment lines of code by pressing the "Cntrl+/" shortcut key sequence. In Spyder I…
Kurt Peek
  • 52,165
  • 91
  • 301
  • 526
74
votes
5 answers

Plot inline or a separate window using Matplotlib in Spyder IDE

When I use Matplotlib to plot some graphs, it is usually fine for the default inline drawing. However, when I draw some 3D graphs, I'd like to have them in a separate window so that interactions like rotation can be enabled. Can I configure in…
pyan
  • 3,577
  • 4
  • 23
  • 36
69
votes
29 answers

Python Pandas - Missing required dependencies ['numpy'] 1

Since yesterday I've had this error when I try to import packages on anaconda : ImportError: Missing required dependencies ['numpy'] I have tried un-installing Anaconda and Python, switching to Python 2.7 but nothing works it's still the same error,…
saib
  • 707
  • 1
  • 5
  • 3
66
votes
14 answers

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

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…
Daniel
  • 3,344
  • 5
  • 27
  • 35
62
votes
4 answers

conda stuck on Proceed ([y]/n)? when updating packages in ipython console

I just downloaded Anaconda 4.2.0 (with python 3.5.2) for Mac OS X. Whenever I try to update any packages etc, my ipython console presents the package dependencies and displays "Proceed ([y]/n)?" but does not take any inputs. E.g. I press enter, or…
Aby
  • 621
  • 1
  • 5
  • 5
61
votes
6 answers

How to update matplotlib's imshow() window interactively?

I'm working on some computer vision algorithm and I'd like to show how a numpy array changes in each step. What works now is that if I have a simple imshow( array ) at the end of my code, the window displays and shows the final image. However what…
hyperknot
  • 13,454
  • 24
  • 98
  • 153
58
votes
4 answers

Why do I get the syntax error "SyntaxError: invalid syntax" in a line with perfectly valid syntax?

I have this code: def Psat(self, T): pop= self.getPborder(T) boolean=int(pop[0]) P1=pop[1] P2=pop[2] if boolean: Pmin = float(min([P1, P2])) Pmax = float(max([P1, P2])) Tr=T/self.typeMolecule.Tc …
Pearl Philip
  • 883
  • 2
  • 11
  • 16
1
2 3
99 100