Learning SPYDER

Jessa Gavilla
4 min readSep 17, 2020

--

I still have a lot to learn and understand as a newbie in programming so as a first step, I am trying to learn SPYDER for today

So what is SPYDER?
Spyder stands for Scientific Python Development Environment

Let us get familiar with SPYDER interface

A. The Code Block — This is the place where you are going to write your code.

B. The Current Working Directory — You may change directory by clicking the folder icon or the drop-down button

C. The File Explorer — It shows you the files present in your current working directory

D. Variable Explorer — Shows you variables that are available in your Python environment

E. IPython Console — This is where you see the output of your Python code

Okay not let’s learn how to run codes in Spyder. There are three different ways how:

A. Ctrl + enter

B. Clicking the play button

C. Press F5 (it would prompt you to save your files first)
Note: Please check image captions for directions

Press F5 and this dialogue box will appear
Choose where you would like the files to be saved
Press F5 to run the code

Importing Data
1.) Import Panda
— Type in import pandas as pd
2.) Read Data
— Type in df = pd.read_csv(‘grabdata.csv’)

Cool feature of Spyder: Copy pasting the entire data set in a quick manner

Click df and then press the keyboard shortcut for copy
ctrl + v into an excel sheet and voila! :)

How to make your codes more consistent:

Click this button
Click code analysis and then ok
Now you get alerted with symbols

Changing the theme of your Spyder IDE

Click this button again
Go to Appearance and choose a theme and click OK
Tadaaaa new theme is here

How to clear variables
Click this button at the top right corned for the IPython Console and click remove all variable

All variables in variable explorer is now removed

How to clear kernel
Click this button at the top right corned for the IPython Console and click restart kernel

Kernel is now empty

My thoughts after this activity:
These are easy to follow instructions for now and I am sure that things are about to get 1000x harder.

P.S taking screenshots are quite time consuming

--

--

No responses yet