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.
5,040
questions
0
votes
0
answers
8
views
Edit python via spyder IDE on a remote server
I have been able to ssh into a remote server through the spyder IDE using this [http://docs.spyder-ide.org/current/panes/ipythonconsole.html?highlight=ssh#connect-to-a-remote-kernel] tutorial.
I can ...
0
votes
0
answers
6
views
Spyder Pop-up: Missing Dependencies
I get this pop-up despite updating to the latest versions of spyder, anaconda, and qtconsole . Error Message
Are there any suggestions?
Tried conda update anaconda
conda install qtconsole=5
no success....
0
votes
1
answer
73
views
TypeError: object of type 'float' has no len() : I can't fix this error. I have spendt almost a day but still
I have seen similar cases but most of them are related to strings.
Mine is a pure function. My arrays and functions:
L=5, n0=4
n=np.arange(1,n0), x = np.arange(-L, L), t = np.linspace(0,1, 5)
def ...
0
votes
0
answers
16
views
How to disable (or move) hover documentation in Spyder?
How do I disable the hover documentation boxes in Spyder?
enter image description here
My main problem with these boxes is that they block where I'm writing (although that is not a problem in the ...
0
votes
0
answers
26
views
DLL load error when trying to import opensim in the spyder IDE
I'm following this tutorial specifically Installing Anaconda and the "opensim" Python package, all the steps worked out perfectly for the last step were I'm asked to type import opensim in ...
0
votes
0
answers
51
views
Alien Invasion. Ship doesn't move properly [closed]
I'm working on alien invasion with Crash Course Python from Eric Matthes (3 rd edition). I'm nat the point that I have a ship that should move to the left and right, but it doesn't work properly. The ...
-1
votes
1
answer
44
views
Multiple random outputs from same pool
I need to have 3 output variables with values from 1 to x, and I need them all to equal 3+y.
If my variables are called "A, B, C" my code is as follows:
A=1
B=1
C=1
while y>0:
A=A+...
0
votes
2
answers
51
views
ModuleNotFoundError: No module named 'selenium' but selenium is installed
import selenium
returns
ModuleNotFoundError: No module named 'selenium'
But when I pip freeze I see:
selenium==4.8.2
Running:
spyder 5.4.2
python 3.8.10
windows 11 pro
Have tried installing/...
0
votes
1
answer
26
views
pyinstaller exception after build the application due to an unknow file
I created an python programme with this imports :
import requests
import os
import json
from wrpy import get_available_dicts,WordReference
import deepl
import win32com.client as win32
import ast
...
0
votes
0
answers
4
views
Remove Annoying Introspection in Spyder
I am using Spyder and there is this introspection that appears when I am typing a function. It is annoying because it is way too zoomed in and I actually have to click on the screen to get rid of it!
...
0
votes
0
answers
16
views
Running a python script in spyder using windows scheduler
I've been scratching my head for several days now and cannot find any solution that helps me. I'm trying to run a python script via spyder, and I want to automate it using windows scheduler. When I ...
0
votes
0
answers
19
views
tight_layout() doesn't work on the first call [duplicate]
I'm using Spider + Qt as Graphics backend.
In the script I do some subplots and finally call tight_layout(), but it does not work:
fig, axs = plt.subplots(..)
axs[..].plot()
...
fig.tight_layout()
...
0
votes
0
answers
21
views
ERROR: Could not build wheels for pyconcorde, which is required to install pyproject.toml-based projects
I'm trying to install pyconcorde on window (https://github.com/jvkersch/pyconcorde). I have used this:
pip install -e git+https://github.com/jvkersch/pyconcorde.git#egg=pyconcorde
But I get this ...
0
votes
1
answer
29
views
Installation of midaspy packages
How do I import packages not on pypi with pip?
I am having trouble importing the package "midaspy" to my spider ide. Even though i used pip install and i can see the packages in the anaconda ...
0
votes
0
answers
9
views
Python ModuleNotFoundError - Spyder virtual environment
I have been using Spyder installed with with Anaconda distribution which uses Python 3.9.13 as default. Currently I set up a new virtual environment named "py38" with Python 3.8.16, in order ...
0
votes
0
answers
22
views
Bleak - Python Bluetooth library: RuntimeError asyncio.run() cannot be called from a running event loop [duplicate]
I'm trying to use Bleak , a Python library for Bluetooth devices management. Starting from an example of use to find active Bluetooth devices
import asyncio
from bleak import BleakScanner
async def ...
0
votes
1
answer
37
views
Qt for python not working: Spyder not launching and matplotlib unable to plot
I am running Windows. I have Anaconda and several environments there, I use Spyder, and also Visual studio Code.
After updating packages (many, I cannot really tell which ones), spyder cannot be ...
0
votes
0
answers
22
views
Spyder 4/5 and python38.dll
My work computer suddenly got forced-upgraded from Spyder 4 to Spyder 5, and Python 3.8 to Python 3.9. Now I get the following error. I know this might mean it can't find the python38.dll file. I know ...
-1
votes
0
answers
19
views
spyder does not lauch from anaconda(unicode decode errror)
The loading screen of the spyder program appears and soon after it disappears and nothing happens.
Sometimes the main interface loads up but soon after, it crashes...
I haven't touched anything from ...
0
votes
0
answers
32
views
Spyder IDE problem : QWidget: Must construct a QApplication before a QWidget
I'm currently on window 11 and trying to install Spyder. Previously on my old PC no worries but I don't understand. My environment seems fine. I don't understand why spyder's QApplication doesn't want ...
0
votes
0
answers
9
views
error when trying to import numpy to Spyder
I'm super new to coding but sprinted through an intro course hoping to get into data analysis uses so seems like numpy and panda modules are the first place to start.
Here is what I've done / some ...
0
votes
1
answer
72
views
Can't lauch spyder on new envs
When i lauch spyder on another env than "base" i get this error :
fromIccProfile: failed minimal tag size sanity
C:\Users\esto5\anaconda3\envs\PIP\lib\site-packages\paramiko\transport.py:219:...
0
votes
0
answers
25
views
Check which other scripts were used when I run some script
I want to tease out exactly which scripts were used when I run a certain script in a repository (through importing some modules from those script etc.). I think stepping through is too tedious as ...
0
votes
1
answer
75
views
Python Discord Bot: asyncio.run() cannot be called from a running event loop
I have been trying to build a discord bot using Python. Unfortunately, I have came across this error in the code which always seem to come up when I run the code.
Here is my error message:
runfile('D:/...
0
votes
0
answers
20
views
spyder kernel error: an error ocurred while starting the kernel
I bought a new computer and installed windows 11. I installed it on my computer by following the Windows Native part on the Tensorflow site step by step. I verified the GPU setup and it returned me ...
0
votes
1
answer
46
views
JVM not running in Spyder 5.4.1 using PyImageJ
I am building a piece of software and trying to combine my analysis scripts between Spyder 5.4.1 (Python 3.8) and and ImageJ macros. My datasets are a series of .tif stack images, so I have decided to ...
-1
votes
0
answers
47
views
How do I use try/except to determine whether a file exists or not? [duplicate]
I have this code:
def choice_2():
try:
f = open('numbers.txt', 'r')
contents = f.read()
f.close()
print ("\nValues Previously Entered: ", ...
0
votes
0
answers
10
views
Anaconda Navigator Missing Spyder
I've just installed anaconda navigator and for some reason it's missing Spyder as well as other applications it it used to have in it's home menu. It's completely missing from the anaconda navigator ...
0
votes
0
answers
16
views
Spyder console running on remote kernel in WSL2 keeps saying "Working directory <directory> does not exist"
I'm trying to run a python script in Python 3.9 from the Anaconda distribution on a kernel in my WSL2 in the Windows Spyder GUI. I was following the instructions in the Spyder FAQ about using a ...
1
vote
1
answer
57
views
I am trying to code my own derivative calculator in Python but it is losing accuracy after h<1e-7
I am trying to program some simple math concepts in order to familiarize myself with the Python language, and one of the first things I tried was a derivative calculator, but I ran into a problem as ...
0
votes
0
answers
9
views
Launch python console from Spyder Python
I would like to launch the python console and run a python script there from within a Python script in Spyder. I am creating a password encryption script and need to run python console so the password ...
0
votes
0
answers
28
views
plotly.express not showing plots [duplicate]
I would like to make use out of plotly.express but they do not show up in spyder (or browser or whereever).
Due to some trials I import:
import plotly.graph_objs as go
import plotly as plotly
import ...
0
votes
0
answers
9
views
Why does my Spyder IDE not open? Can I fix it without admin rights on my PC?
I have been using Anaconda and Spyder for a while now, and Spyder told me to upgrade so I did what it told me, using the conda upgrade command. Now it no longer works. When I try to launch Spyder from ...
0
votes
1
answer
18
views
Spyder issues without anaconda distribution "distfit" package. Cannot change PATH
I am using python 3.11. I was setting up a remote development enviornment and the anaconda distribution was just messing everything up. In order to get it to work I had to uninstall the conda ...
0
votes
1
answer
23
views
PyCharm and Spyder IDE's not giving correct output?
I tried running this code in PyCharm and Spyder , but every time wrong output was given . But same program is running perfectly fine in programbiz online python interpreter. I am uable to figure out ...
-1
votes
0
answers
29
views
Issue with yahoo_fin , not able to use it anymore
I have been using the library yahoo_fin to retreive stock data, but lately there has been some problems using it and I get this error :
*C:\Users\Yassine\anaconda3\lib\site-packages\pandas_testing.py:...
0
votes
0
answers
15
views
Spyder5 launching but not displaying after update to Windows 11
My Windows computer recently went through an OS software to from Windows 10 to 11 Home. Prior to the update, I've been working with Spyder using python with no conda. To run the Spyder app, I always ...
-1
votes
0
answers
14
views
CHANGE RESOLUTION
I'm using Spyder with Python 3.9 and I work with a laptop, but also I use an external monitor. So, Spyder resolution changed about it and I don't know how I can see well again.
I didn't find a ...
0
votes
1
answer
31
views
Spyder name defined in a file and not recognized in another file
With Spyder IDE 5.3.3 and Python 3.9
I create in a tab with test1.py file with 2 instruction lines :
a='Bob'
print(a)
Wen I Run this File (F5) Bob is correctly displayed on the console.
I can see ...
0
votes
0
answers
25
views
How can I import a pyd file in spyder from anaconda?
I'm using spyder from Anaconda. I'm trying to import a pyd file but this message appeared: 'DLL load failed while importing _py_bbt_driver: No se puede encontrar el módulo especificado.'. How can I ...
0
votes
0
answers
19
views
pandas not updating using Anaconda(spyder)
Whilst debugging an error I found that my pandas library was very out of date v1.0.5 compared to the latest 1.5.xx so I tried to update it in the Spyder consol with:
!pip install upgrade pandas
I ...
0
votes
0
answers
29
views
Spyder does not launch
I have a brand new PC running Windows 11. Same version as my laptop on which everything works fine. I am unable to launch Spyder. I either run Spyder.exe and it gives me a waiting cursor then nothing ...
0
votes
1
answer
91
views
Pandas concat doesn't work 'DataFrame' object has no attribute 'concat' pandas
I am trying ton concat excel files with pandas but I get this error message "AttributeError: 'DataFrame' object has no attrctionibute 'concat'"
My code is the following:
def action():
...
0
votes
2
answers
57
views
Tkinter window does not close on Mac
I have few lines of code working fine with tkinter on Windows but that do not work on the Mac of my colleague. On Mac when I hit 'OK' the checkboxes window does not close. It looks like this issue has ...
0
votes
0
answers
23
views
How to reimport module variable that's read from a separate file?
I am wondering how to update a module import even when the contents of that module are not explicitly changed. I'm working in Spyder. For example, I have a simplified file directory:
test/
├── main.py
...
-2
votes
0
answers
22
views
Scrape encrypted email addresses
I am trying to scrape emails off. The emails seem to be encrypted. I am getting the following output when getting the tag before stripping the text.
This is the output that I am getting and stripping ...
0
votes
0
answers
12
views
How do I change the indentation when code continues on a new line in Spyder IDE?
I must have pressed some button in Spyder IDE, because now when I continue a piece of code on a new line it becomes indented way too far. In the example image, you can see that the list comphrehension ...
0
votes
0
answers
13
views
Interrupting Remote Python Kernels in Spyder or Other IDEs
I'm currently using Spyder to connect to a remote kernel, and I'm looking for a way to interrupt the kernel from Spyder. I found a post on Stack Overflow (Shutting down a remote kernel from Spyder) ...
0
votes
1
answer
33
views
Jupyter and Spyder behaviors are different
I have the following data as an example:
data = (
[1,230.1,37.8,69.2,22.1],
[2,44.5,39.3,45.1,10.4],
[3,17.2,45.9,69.3,9.3],
[4,151.5,41.3,58.5,18.5],
[5,180.8,...
0
votes
0
answers
16
views
Spyder notebook does not show option for notebook
Spyder notebook doesn't show notebook option
Solved:
pip uninstall ruamel.yaml
pip uninstall spyder-notebook
pip install ruamel.yaml==0.17.21
pip install spyder-notebook==0.4.0