Skip to content

Tag: spyder

No Spyder-Terminal on Spyder 5.0.5 (MacOS)

I tried to install spyder terminal on my spyder. Steps oI followed (in iPython Console): Then: And I get an error message that says: I thought that it was because of the enviroment, so I tried to create a new conda enviroment with the spyder terminal module. I do as follows (in my terminal): Then: And finally…

Random numbers, small decimals

I’m working with random numbers in python, the problem is the following; I have a variable, we can call it “x”, I want it to take values between [10^-6,10^-1], then I have the following line But it is only generating numbers like It never generates numbers like How can I generate the second …

Pickle data not loading

Here I the data I try to save as a “pickle file” Then in a separate script i open it: It seems to run smoothly, however the only thing that appears in my variable explorer is a Buffered Reader Object. Answer pkl.load returns the loaded object. Your code immediately discards it. You should assign i…

How to instal Python packages for Spyder

I am using the IDE called Spyder for learning Python. I would like to know in how to go about in installing Python packages for Spyder? Answer step 1. First open Spyder and click Tools –> Open command prompt. For more details click visit this link, https://miamioh.instructure.com/courses/38817/pages/…

Missing dependancies of rtree

I am currently using Spyder for Python, and I have this error message when I open the program: Error: You have missing dependencies! rtree>= 0.8.3: None (NOK) Please install them to avoid this message. Note: Spyder could work without some of these dependencies, however to have a smooth experience, we stron…

How can I run selected lines in Spyder 4?

In previous versions of Spyder, you can select lines in the editor, and only run those selected lines. In Spyder 4, when you select lines and press Ctrl+Enter it executes runcell(0, ‘/your/dir/file.py’) which runs the whole code. How can I run just the lines which I have selected? Answer The hotke…

Close all variable explorer windows in Spyder

Does anyone know of a quick way to close all open variable explorer windows in Spyder? (i.e. the windows that open when you click on a variable). In Matlab, you can close all pop-up windows with close all. Does anything like that exist for Spyder? Answer (Spyder maintainer here) We don’t have a command …