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
24
votes
2 answers

Cannot update spyder=5.1.5 on new anaconda install

I installed anaconda and spyder came with the installation. Spyder 4.2.5 came with the installation and I got a pop up notification that spyder=5.1.5 is available. I tried conda update anaconda conda install spyder=5.1.5 and gets an…
dr_drnk
  • 243
  • 1
  • 2
  • 7
24
votes
3 answers

What is the best method to load a Jupyter notebook session into Spyder?

Edit: See Spyder Notebook Plugin... https://github.com/spyder-ide/spyder-notebook I would like to load a Jupyter notebook into Spyder and activate the current Jupyter Python kernel in an Spyder Ipython console. I was hoping this would allow me to…
DougR
  • 3,196
  • 1
  • 28
  • 29
24
votes
7 answers

How to display function arguments in Spyder?

I'm using Spyder 2.2.5 with Python 2.7 and I want the editor to display the arguments of the function I'm calling after I type the first parenthesis. I know it's possible, because I can see it in the video-tutorials I'm using. I've tried (at least I…
Erik van Elten
  • 405
  • 1
  • 4
  • 10
23
votes
6 answers

Set working directory in Python / Spyder so that it's reproducible

Coming from R, using setwd to change the directory is a big no-no against reproducibility because others do not have the same directory structure as mine. Hence, it's recommended to use relative path from the location of the script. IDEs slightly…
Heisenberg
  • 8,386
  • 12
  • 53
  • 102
23
votes
3 answers

Changing indentation settings in the Spyder editor for Python

I am using the Spyder editor for Python. I need to change the indentation setting (e.g., let "tab" mean "4 spaces"). How do I accomplish this?
Jesper - jtk.eth
  • 7,026
  • 11
  • 36
  • 63
22
votes
3 answers

Extracting specific columns from pandas.dataframe

I'm trying to use python to read my csv file extract specific columns to a pandas.dataframe and show that dataframe. However, I don't see the data frame, I receive Series([], dtype: object) as an output. Below is the code that I'm working with: My…
Yags
  • 482
  • 1
  • 6
  • 18
22
votes
6 answers

downloading error using nltk.download()

I am experimenting NLTK package using Python. I tried to downloaded NLTK using nltk.download(). I got this kind of error message. How to solve this problem? Thanks. The system I used is Ubuntu installed under VMware. The IDE is Spyder. After using…
user288609
  • 12,465
  • 26
  • 85
  • 127
22
votes
4 answers

Set Spyder as default Python

I've recently installed Anaconda (using the default settings) on Windows 7. When I try to open a .py file by double-clicking it, I get the Open with... option. How can I set the default program as Spyder?
Medulla Oblongata
  • 3,771
  • 8
  • 36
  • 75
22
votes
1 answer

Spyder - UMD has deleted: module

I have been fooling around for about a month with python now and something is bothering me. I use the python(x,y) toolkit, which comes with the neat Spyder IDE. My question concerns the UMD (User module deleter) of Spyder. I found this graphics…
Kraay89
  • 919
  • 1
  • 7
  • 19
21
votes
10 answers

Python Spyder reset

I was using python(x,y), which came with Spyder. Yesterday, Spyder crashed I can't figure it out how to fix it. I uninstalled python(x,y) and reinstalled, still the same problem. If I try to open Spyder I get this message: Spyder crashed during last…
Akavall
  • 82,592
  • 51
  • 207
  • 251
21
votes
5 answers

Spyder Debugger hangs (not debugging)

I updated to the latest version of Spyder (5.1.5) and my debugger hangs w/o response on the first line, no matter the code. Here are the dependency versions: Spyder 5.1.5 spyder-kernel 2.1.1 Python 3.9.7 IPython 7.31.1 I remember having this…
Devin
  • 341
  • 1
  • 3
  • 6
21
votes
2 answers

"RuntimeError: asyncio.run() cannot be called from a running event loop" in Spyder

I am trying to learn about asyncio for a websockets client. Every piece of code I try gets the following error: RuntimeError: asyncio.run() cannot be called from a running event loop I have tried the most simple code and it always gives that…
Javier Martin
  • 323
  • 1
  • 3
  • 8
21
votes
1 answer

How to change the default module docstring in Spyder?

How to change the default template for new modules in Spyder IDE? # -*- coding: utf-8 -*- """ Created on %(date)s @author: X """
Abdulrahman Bres
  • 2,603
  • 1
  • 20
  • 39
21
votes
2 answers

Avoid 'Reloaded modules: ' message in Python

I am getting the above mentioned error: 'Reloaded modules: ' Since I want to keep my code as it is, i'd like to disable this warning. How can this be done? I am using Spyder 3.2.3.
msg
  • 315
  • 2
  • 3
  • 12
21
votes
1 answer

spyder Ipython console buffer

I'm using Spyder 3.5 and trying to change the number of IPython Console buffer line. The default is 500 lines. But no matter what number I change to, the limit is still 500, and I cannot scroll back beyond 500 lines. I also open a new console after…
user87313
  • 313
  • 1
  • 2
  • 6