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

Library Installation Python + Spyder

I am having a problem installing Python Libraries such as Numpy, Sklearn, etc. I want to use these libraries with Spyder. I did reset my Windows and this is my attempt in reinstalling the libraries I had before. But I am getting an error like this…
Errata
  • 71
  • 1
  • 8
1
vote
2 answers

Why can't I see spyder-terminal after installing plugin using pip (Windows 10)?

I am using Python 3.9.0 and Spyder 4.2.0 on Windows 10 (x64) machine. Via official repo, I installed the spyder-terminal plugin using pip. It installed successfully. After installation, when I open the Spyder IDE, I can't see the terminal. I tried…
khajlk
  • 791
  • 1
  • 12
  • 32
1
vote
1 answer

How to run same Python script two times simultaneously in two different instances?

I want to know that is it possible to run the same script say ABC.py, in two different spyder instances by passing different input values? I know that we can run completely independent projects in multiple spyder instances using spyder…
1
vote
0 answers

Lunching Spyder gives Bad address, completely fresh environment

I cant get spyder to run. I do conda create -n somename python=3.8.5 spyder=4 Or alternatively python=3.7.5 and spyder without version numbers. I have also tried the simple way and create a new environemtn via anaconda navigator. In all cases, I get…
Jorrit G
  • 509
  • 2
  • 5
  • 6
1
vote
1 answer

Memory storage issue with plt.contourf()?

I have problem with my Python code, which I execute in Spyder. I'm somewhat of a coding noob, so for practicing purpose I wrote a classification code using KNN. The code works well until the point where I want to visualise the results. The problem…
ikarus
  • 11
  • 2
1
vote
2 answers

Issues Opening Spyder via Anaconda

I was forced into some software updates on my laptop (ThinkPad) and after the update when I tried to open Spyder (via Anaconda) and it won't open. I don't have any experience in errors like this or fixing this stuff (and I am aware this may be…
Rachel Cyr
  • 429
  • 1
  • 5
  • 15
1
vote
0 answers

Conda failed to solve environment on a fresh installation

I've encountered a strange issue with Conda on a fresh installation of Python. I recently installed Miniconda3, and created a new environment using it. Then, when I tried to install Spyder in said new environment, the following message…
1
vote
2 answers

Python : Show only necessary decimals

I want python to show only decimal places that are actually necessary. For example : x = 10 print("The value of 'x' is - " + float(x)) will print only : The value of 'x' is - 10.0 This is really irritating as I am trying to make a calculator that…
1
vote
1 answer

Why is part of my dataset colored by spyder, and part is not?

I have data set, and there is something wrong with it fundamentally and I don't understand what. Till I get to index 4807 everything is ok, and afterwards isn't. All datatypes are float64. Image on the left is good data, and you can see that Spyder…
1
vote
1 answer

'xlrd' installed, but getting the error: "Missing optional dependency 'xlrd'..."

I'm using Python 3.7 and I recently upgraded to Spyder 4.2.0 from Spyder 4.1.5. Now when I run my code (which was working fine before) I get the following error: ImportError: Missing optional dependency 'xlrd'. Install xlrd >= 1.0.0 for Excel…
Leonidas
  • 613
  • 1
  • 6
  • 23
1
vote
0 answers

Error while trying to transpose the matrix

Code for a single raster file: import geopandas as gpd #import os import rasterio import scipy.sparse as sparse import pandas as pd import numpy as np # Create an empty pandas dataframe called 'table' table = pd.DataFrame(index =…
Bhargavi
  • 31
  • 4
1
vote
1 answer

How to make Spyder marking unused variables?

Currently, I do not see a mark under a calculated variable that is not used later. Is there a way to make Spyder marking the unused variables?
Gideon Kogan
  • 662
  • 4
  • 18
1
vote
1 answer

How do I test classes in python?

I defined this class using spyder and to test it my teacher would create a new file just for testing and he would check if each method returned the desired result, can anyone tell me how to do that? class Caminhos(): def…
João Dias
  • 11
  • 1
1
vote
1 answer

Python Vs Spyder

Initially, I installed Python and also Anaconda. When I imported basic packages like pandas using python on command prompt, it was not reflecting in Spyder. Then I realized that my python installation is different from the Spyder installation. After…
U12
  • 83
  • 3
  • 11
1
vote
0 answers

How do imports work in Spyder IDE? Why is it different to running your code from Powershell?

I have seen a lot of questions on this topic, but None seem to explain why this is happening or provide a solution I can use. The following script gives 8 different outputs depending on where it's run from and I really don't understand why. I've…
Linden
  • 531
  • 3
  • 12