I’m trying to put a variable name into a file path to open a csv using spyder 5, python 3.7.9, in windows. It worked fine on the raspberry pi and also on Ubuntu but I can’t figure out the windows file path conventions. Code below I get the error of a red circle with a white cross in the middle
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: And I get
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 type of random numbers? Generating random numbers
Solving formula across multiple rows (similar to excel) in python?
I’m looking for some kind of functionality similar to excels solver in python. In python I have a function which when supplied an array of length N, returns an array of N also using some columns from a dataframe. Below is a simple example of that I have, and what the target is. From here I am looking for a
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 in to a variable:
pipx-installed Spyder doesn’t recognize Poetry-installed pandas only when trying to view DataFrame in Variable Explorer
I’m using Python 3.8.5. My OS is Kubuntu 18.04. I installed Spyder and Poetry via pipx: Within my project folder, I installed pandas and spyder-kernels as dependencies: I can open Spyder just fine: In Spyder -> Preferences -> Python interpreter, I added the path to the Python interpreter for the project’s Poetry environment. I can import pandas in Spyder, like
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/downloading-and-installing-packages
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 strongly recommend. I tried pip install rtree and got: Please
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 hotkey for running a the line at which the cursor
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 to do that, sorry.