In this article, we will get the basic overview of Spyder in Ipython. I assume you have already read out the previous article where I talked about Python in general and the other lectures and also showed you how to download and install Python and Spyder environment and Ipython console as well.
In this
lecture, I'll tell you a few things about the spider environment: the
environment from where all the writing and executing the Python code. So the
platform we were looking at is a spyder.
What is Spider?
Spider
stands for scientific Python development environment. Do not get scared by the
name spider is just an environment where you will write a Python code. So
Spider provides an editor here on the left and an interactive shell on the
right.
Ipython
provides the interactive shell. So Ipython is an enhanced shell where you write
around Python code, so Ipython is like the bare shell that you can access
through your command prompt but with some added capabilities that we will
discover together move through the course.
How to Access the Ipython through
Command-Line?
You can also
access Ipython through your command line by just typing Ipython, and you get
the same console with the same functionalities as the one you have been Spyder.
But I would
suggest using the Ipython through a spider because you have everything inside
one environment. To write scripts of code, you should use the editor here on
the left, and I have another concise lecture where I teach you how to run
scripts of code to program interactively.
You use the
shell on the right side. Programming interactively means writing and executing
single code lines, which is done when testing, where you do not intend to save
your script self-code.
For
instance: let us instruct Python to print out some text for us. So the function
of that prints out text is print, and the text we want to print is displaying
some text. Thus, we get the text is displayed as soon as we hit enter on the
keyboard. That is what I refer to as interactive programming.
You can open
multiple shells or consoles if you like, but you will not have to do so
normally. You can choose either which of two panes by viewing panes and then
clicking the pain you want to show or hide.
So if I check the editor, the editor with hiding, and I have a full view of the Ipython shell, you could also modify the way a spider looks by going to tools and preferences. Here, you have quite a lot of displaying options that you can play around with.

0 Comments