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
1
vote
1 answer

How to assign different numbers to Dataframe's one column

I had a dataframe which has 294467 rows and 7 columns. I want to assign the same number to products' brands which has the same brand. Here is the example of my dataframe: overall ... brand 0 5.0 ... Pirmal…
jazz kek
  • 94
  • 2
  • 8
1
vote
2 answers

Converting STR to INT on Dataframe doesn't work on the specific parts

I know, this is an easy question, but I checked so many sites on the internet and couldn't find the problem that I have. I have a dataframe and one column of this dataframe is for brand. I wanted to give specific numbers for these brands to make…
jazz kek
  • 94
  • 2
  • 8
1
vote
0 answers

Get Spyder to set cwd to file's location

I am working with Spyder IDE to run my Python code. It seems that my cwd is set to my home folder by default, and I have to manually convert it to the directory of whatever file I'm working in using os. This is very cumbersome. I would obviously…
1
vote
1 answer

What is KeyError: 'pandas._libs.interval'

I try to run code in Spyder and get an error like this. But I ran the code successfully in the Spyder in Anaconda
Jing Liao
  • 23
  • 4
1
vote
0 answers

Tkinter library code not responding to Spyder breakpoints

I was trying to understand the Tkinter library code a little bit better, so I've been trying to place breakpoints in different places and understand the flow of code. To my surprise, the debugger does not stop at many points of the library code that…
user49404
  • 732
  • 6
  • 22
1
vote
1 answer

Why are both of my graphs not showing when using Altair on Spyder?

Code for two graphs. Ran this code a couple of times, and for some reason all that's showing up is the histogram. It's also important to mention that I am using Spyder IDE as well, if that makes any difference. Oh....and I've also tried…
truee
  • 51
  • 7
1
vote
1 answer

How can I change the encoding in Spyder to UTF - 8?

I want to change the encoding in Spyder to UTF - 8. Could someone explain me how I reach this, please? Thanks for helping me! EDIT def deleteDoubleValues (derivativeAngle): position = [] cleanValues = [] #leeres Array erstellen …
mathsqt
  • 53
  • 2
  • 8
1
vote
2 answers

Why does Spyder not include 'return' statement values in Variable explorer?

I have a very simple script and want to observe the behavior of the return statement in Spyder. I'm wondering why the return statement value is not included in the Variable explorer.
psrpsrpsr
  • 457
  • 1
  • 4
  • 12
1
vote
1 answer

How to use my GPU when coding in Spyder (Anaconda in general) (Windows 10)?

I've recently tried to use my GPU in Windows 10 by following several instructions. Initially, I followed instructions given by Tensorflow (Tensorflow.org). I installed python 3.9.1, cuDNN 11.1, CUDA 11.1.1, NVIDIA GPU Driver based on my Graphic…
Alexandros
  • 71
  • 1
  • 7
1
vote
1 answer

Reset python Logger to prevent duplicate logging records

Context In a module with several classes and methods I use the python logging class with a global variable, called logger. It is initialised by the method initialise_logger (see below) once the module is called. Problem When I execute the module…
1
vote
0 answers

SpyderKernelApp WARNING No such comm in windows 10 on spyder3 ide

class Person(): def __init__(self,a=40): self.speed = a def get_speed(self): return self.speed def set_speed(self, a): self.speed = a return speed = property(get_speed,set_speed) c1 =…
1
vote
1 answer

Using pip in the standalone Spyder on MacOS

As the Anaconda Distribution of Spyder has some typing latency issues on macOS Big Sur, I've gone ahead and downloaded the standalone distribution. However, when trying to install packages with pip I get the error message: pip install…
1
vote
3 answers

Is seperate language installation required after installing IDE?

I want to install Python on my windows 10 64 bit However I cant figure out which IDE is best for GUI application building I've tried using ActivePython but its not compatible with x64 processors I want to use both Matplotlib and Tkinter in my…
1
vote
1 answer

How to make the data of my angles appear in a degree form?

I'm simulating projectile motion with python and there's one thing I need help with. As I use plt.legend() to show the angles corresponded to each lines(on the upper right corner of my graph), they appear in a radian form. How do I convert them to…
gggjackie
  • 63
  • 7
1
vote
0 answers

Pyplot figure doesn't open before the end of the program

I am making a program with different modules, components to perform file/folder management, data acquisition, model computation, and online acquisition feedback with OpenCV. The program uses a very simple command-line interface, which core is a menu…
Mathieu
  • 5,410
  • 6
  • 28
  • 55