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
56
votes
3 answers

How do I connect my python spyder with github?

Is there any way to connect python spyder with github? I manage my R scripts via github, because R provides with interfaces that enables users to commit, pull and push, but I wonder if there is same(or similar) system in python(x,y) spyder. I want…
ritos
  • 641
  • 1
  • 5
  • 10
56
votes
7 answers

%matplotlib line magic causes SyntaxError in Python script

I try to run the following codes on Spyder (Python 2.7.11): # -*- coding: utf-8 -*- import numpy as np import pandas as pd %matplotlib inline import matplotlib.pyplot as plt import matplotlib.cm as cm import tensorflow as tf #…
John
  • 561
  • 1
  • 4
  • 5
54
votes
8 answers

ImportError: No module named enum

I changed from Win XP 32bit to Win7 64bit and reinstalled Python 2.7 and the Anaconda package. However, it seems like it isn't properly installed. When I do import enum There is the error: ImportError: No module named enum However, when I try…
user3276418
  • 1,777
  • 4
  • 20
  • 29
50
votes
5 answers

How do you use replace in Spyder?

Well, you start with cursor on your text, Ctrl+H and type replacement. But surprisingly i was not able to found any shorcut for actual replace or replace all action, rather than tabbing 5(!) times or moving my hand for a mouse. Straightforward enter…
47
votes
1 answer

ValueError: Unknown projection '3d' (once again)

When executing this line of code: import matplotlib.pyplot as plt #your code fig = plt.figure() ax = fig.gca(projection='3d') I have an output error: raise ValueError("Unknown projection %r" % projection) ValueError: Unknown projection…
Leos313
  • 5,152
  • 6
  • 40
  • 69
47
votes
8 answers

How to change python version in anaconda spyder

I am using 3.6 Python version in anaconda spyder on my mac. But I want to change it to Python 2.7. Can any one tell me how to do that?
Jeevan
  • 740
  • 2
  • 7
  • 15
47
votes
2 answers

Interactive Python: cannot get `%lprun` to work, although line_profiler is imported properly

Problem Most iPython "magic functions" work fine for me right off the bat: %hist, %time, %prun, etc. However, I noticed that %lprun could not be found with iPython as I'd installed it originally. Attempt to Resolve I then discovered that I should…
Mike Williamson
  • 4,915
  • 14
  • 67
  • 104
44
votes
5 answers

Spyder does not autocomplete local variables

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),…
idoda
  • 6,248
  • 10
  • 39
  • 52
43
votes
19 answers

Anaconda Navigator won't launch (windows 10)

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…
Hammad Hashmi
  • 531
  • 1
  • 5
  • 4
41
votes
5 answers

Python Multiprocessing error: AttributeError: module '__main__' has no attribute '__spec__'

I'm using Python 3.6 and am trying to follow along with the very first example at the website below (full code also below) and am getting the below error: https://docs.python.org/3.6/library/multiprocessing.html Error message: AttributeError: module…
user8474060
  • 809
  • 1
  • 7
  • 7
39
votes
1 answer

Spyder 5 missing dependencies - spyder_kernels version error

Spyder gives me error message like above, but I cannot solve it. I think the version of spyder_kernels should be 2.0.1 at least, but I already updated my version as 2.0.1. Why I get such warning message? & How can I solve it? I reinstalled…
Geonsu Kim
  • 601
  • 1
  • 6
  • 12
38
votes
7 answers

Spyder 5 ModuleNotFoundError

I have just updated my spyder4 to spyder5 as: conda update spyder as I try to launch spyder it gives an Error : No module named 'qdarkstyle.colorsystem' Here is the complete information : Traceback (most recent call last): File…
Sinooshka
  • 511
  • 5
  • 10
38
votes
3 answers

Changing variable name in Spyder

I have a program with many formulas and variables. I need to change the name of some of these variables. Is there any command or function in Spyder that can help me change all the names in one step? I am looking for something like the Matlab's…
VitOne
  • 439
  • 1
  • 4
  • 8
37
votes
1 answer

How to hide hover tooltips on Spyder 4

not sure where to ask: is there a way to not have the help tooltip/popup/hover window opening in spyder? since updating to 4.0 the window does not close when you change between windows: guess something like this will be reported and delt with in…
Frank Musterman
  • 642
  • 1
  • 7
  • 14
37
votes
2 answers

What is the difference between Spyder and Jupyter?

I am learning Python for data science, but my problem is that I still don't understand the difference between Spyder and Jupyter! I would like you guys to help me to understand the difference, please; I would appreciate that.
Amir Boutaghou
  • 545
  • 1
  • 4
  • 6