Changes

Jump to: navigation, search

OPS435 Python3 Lab 1

60 bytes added, 18:22, 27 February 2020
m
INVESTIGATION 2: USING THE "IPYTHON" CLI: fix one typo
<!-- Try to use tables and simplify the layers of WIKI to make top links less verbose to students -->
:Centos 7 - release 1810 1908 will be used for this course. The purpose for this is to allow you to use a consistent and stable '''RedHat''' based OS, and to lower the amount of new linux distros that you need to learn.
: Most of you will likely use the school's Windows machines with the Vmware hypervisor. It is also possible to use your own laptop computer, but check with your professor before you do that.
::*'''Name:''' c7-[student-id] --> replace the place holder [student-id] with you Seneca user name
::*'''Boot media / Installation:''' CentOS7 Full Install DVD
:::*Download at Seneca College: CentOS 7 Full Install DVD (image file): http://belmontmirror.senecacollege.ca/pub/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-18101908.iso:::*Download outside Seneca College: http://mirror.csclub.uwaterloo.ca/centos/7/isos/x86_64/CentOS-7-x86_64-DVD-18101908.iso
::*'''Disk space:''' 50GB
::*'''CPUs:''' 4 (Number of processors: 1, Number of cores per processor: 4)
:'''IPython''' is an interactive environment that allows us to run python code line by line as we write it. This will also act like a bash shell prompt allowing users to enter a limited number of Bash shell commands. You will notice this by seeing an [IN] prompt where to enter commands and an [OUT] prompt that will display output from issued commands. We will start creating scripts out of the code within this '''IPython''' environment.
<blockquote style="margin-left:35px;">{{Admon/important|style="padding-left:25px"|ipython and python|[https://plot.ly/python/ipython-vs-python/ What is the difference between '''python''' and '''ipython'''?] Please note that in later labs, you can use either '''python''' or '''ipythoneipython''' as the interactive python shell.}}</blockquote>
:#Lets find out which ones are available, type the following command into the IPython shell:<source>
alias
</source>We should now have a list of all the bash commands available in IPython.Research on how to add vim as an alias in ipython permanently
:#Lets setup a directory structures for completing and organizing labs. These should be the locations to store your lab scripts.<source>
mkdir ~/ops435/lab2

Navigation menu