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

Spyder Python 3.7 Why some methods are not shown after the dot?

If you press Ctrl + Space bar after an object name and a period (e.g. objectname.) you can see a pop up with associated methods to that object. For example, define test2 as: test2 = str('abracadabra') If I type test2. and press Ctrl + Space bar I…
user3507584
  • 3,246
  • 5
  • 42
  • 66
1
vote
1 answer

Drawing a line from origin to points on the circle

This code plots a particular row of phases given in a NumPy array on a circle of radius 2pi using the matplotlib module. How can I draw straight lines from the origin(0,0) to these points/phases plotted on the circle? import numpy as np import…
Jules
  • 35
  • 1
  • 7
1
vote
1 answer

Import Error: cannot import name 'export_saved_model'

I am learning Deep Learning right now and I am making an RNN. My instructor says I need to import the following libraries: from keras.models import Sequential from keras.layers import Dense from keras.layers import LSTM from keras.layers import…
hmood
  • 603
  • 7
  • 25
1
vote
1 answer

Are different between 'RUN' and 'RUN (full) selection' in Spyder?

I have a source code consists of many custom modules. In the first few lines, there are import words such as... import custom_module_1 import custom_module_2 import custom_module_3 .... When I run(shortcut is F9) this code with partial or full…
user3685918
  • 335
  • 2
  • 12
1
vote
1 answer

How do I store a functions output without re-running the function in Spyder

Essentially I have 2 functions, the second takes in the output of the first as a parameter. Something like: value1 = function1() value2 = function2(value1) I want to avoid running the first since it takes a long time to run (5mins+). In jupyter…
fthomson
  • 773
  • 3
  • 9
1
vote
1 answer

Problems running web scraper in Spyder IDE

I have a code that is using Scrpay framework and here's the code import scrapy from scrapy.crawler import CrawlerProcess class DemoSpider(scrapy.Spider): name = "DemoSpider" def start_requests(self): urls =…
YasserKhalil
  • 9,138
  • 7
  • 36
  • 95
1
vote
0 answers

Spyder profiler times don't add up (totalTime =/= localTime + sub-function totalTime)

So the total time of optimizeVoxels = 1.86 min * 60sec/min = 111 seconds. However, this doesn't match the profiler results from the local time and sub-functions. localTime(optimizeVoxels) = 24.93 ms = 0.024 sec subFunction total times =…
user49404
  • 732
  • 6
  • 22
1
vote
1 answer

Spyder type auto prediction requires 3 characters minimum

I am using Spyder as my Python IDE instead of Pycharm. Its editor provides predictions quite fast but it needs at least 3 characters for them to be shown. Can I change this? My problem is I have similar variables with long names, so having faster…
maxemilian
  • 347
  • 1
  • 3
  • 15
1
vote
1 answer

How do I fix (raise ValueError("Duplicate Signature: %r" % signature) when I try to run the parallel_apply function from pandarallel

Hi I am getting a error (raise ValueError("Duplicate Signature: %r" % signature) when I try to run the parallel_apply function from pandarallel. I am using spyder from Anaconda to run the code, there is no issues with the code, the error appears…
1
vote
0 answers

How to use FEniCS in Spyder with Python 3.8?

I am quite new to python and only did smaller projects so far. For a new project I would like to use FEniCS for solving PDEs. I am working with Windows 10 and already successfully installed Ubuntu (I still do not entirely understand what Ubunutu is…
Airwaves12
  • 11
  • 2
1
vote
2 answers

How to disable green highlight in Spyder

does anybody knows how to disable the green highlight in Spyder editor as I show in the picture below? Thanks
Mateo
  • 148
  • 1
  • 1
  • 9
1
vote
1 answer

PyCaret - How to have similar output in Spyder as Jupyter Notebook

I am running setup and comparing functions of PyCaret in Spyder. According to PyCaret documentation, there is always a grid as an output result. I realized that documentation took for granted that code is running in Jyputer Notebook. I am using…
Grkjohny
  • 11
  • 1
1
vote
1 answer

Kernel Restart (Ctrl+.) in spyder not working

I have recently updated my Anaconda and Spyder app! But in this new version of Spyder (version 4), when I restart the kernel (with short key and from console in above ribbon), the Restart kernel confirmation window shows up, Then I press the "yes"…
1
vote
1 answer

How to get the directory of a current script on Spyder (without using '__file__')?

When I open Spyder (version 4.1.4), it opens a script that I was previously working with. However, the directory is set to 'C:\\Users\\UserName' (this is what I get with os.getcwd()). I like to change the directory to where the script is, but I…
alpha
  • 173
  • 1
  • 2
  • 12
1
vote
0 answers

Pandas read_html taking way too long in Anaconda Spyder--why?

I'm pretty sure this is basically an Anaconda/Spyder question, and probably a dumb newbie one at that. Basically: why is my code taking SO LONG in Spyder? Background--I've been using pandas to read from Excel files (read_excel), manipulate the…
P E
  • 165
  • 11
1 2 3
99
100