Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”

Slides:



Advertisements
Similar presentations
Installing DOS and Windows98 under MS Virtual PC.
Advertisements

1) Terms to Know 2) Starting an Office 97 Application 8) Finding a missing file 7)File Managment 4) Utilizing the Right Mouse Button 6) Using Help 3)
COMPUTER PROGRAMMING Task 1 LEVEL 6 PROGRAMMING: Be able to use a text based language like Python and JavaScript & correctly use procedures and functions.
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
Microsoft Excel 2003 To start Excel, click the start button. A slightly different procedure might be required for computers on a network. If you need assistance,
Web ADI - Srinivas.M. Purpose Data upload into Oracle Applications Solution: Web ADI brings Oracle E-Business Suite functionality to a spreadsheet, where.
Understanding Microsoft Excel
How to Use The Borland C++ Compiler Version 5
Editing Java programs with the BlueJ IDE. Working environments to develop (= write) programs There are 2 ways to develop (write) computer programs: 1.Using.
Introduction to R Statistical Software Anthony (Tony) R. Olsen USEPA ORD NHEERL Western Ecology Division Corvallis, OR (541)
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
Creating a Web Page HTML, FrontPage, Word, Composer.
Word processing June 2013.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
How to Download and Install a Sharp Print Driver on a Mac.
Using Backstage Lesson 2. Objectives Software Orientation: Backstage View Backstage view’s left-side navigation pane (see figure on the next slide) gives.
Installing the SAFARIODBC.EXE For use with Excel May 3, 2002.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
How to Download and Install a Print Driver on a Windows PC.
MICROSOFT WORD GETTING STARTED WITH WORD. CONTENTS 1.STARTING THE PROGRAMSTARTING THE PROGRAM 2.BASIC TEXT EDITINGBASIC TEXT EDITING 3.SAVING A DOCUMENTSAVING.
Objectives Understand what MATLAB is and why it is widely used in engineering and science Start the MATLAB program and solve simple problems in the command.
 Starting Excel 2003  Using Help  Workbook Management  Cursor Management  Manipulating Data  Using Formulae and Functions  Formatting Spreadsheet.
How to make graphs. Hello, There are many ways to make graphs to represent your data. Throughout this very detailed tutorial you will learn to make bar.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
COMPUTER OPERATING SYSTEMS THE BIG 3. MENU PC WINDOWS The primary operating system for the majority of computer users around the world is Windows. Many.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
Welcome to the CRE Programming Club! Robert Eckstein and Robert Heard.
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
Unit 1: Java and Eclipse The Eclipse Development Environment.
9/2/ CS171 -Math & Computer Science Department at Emory University.
ISU Basic SAS commands Laboratory No. 1 Computer Techniques for Biological Research Animal Science 500 Ken Stalder, Professor Department of Animal Science.
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Proxy Installer for Windows Squid: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response.
ITGS Application Software, pt. 3. ITGS Business Software Alliance (BSA) and Federation Against Software Theft (FAST) –Represent software companies and.
By Felixberto Dominic B. Eruela.  Using a computer to create, edit, and print documents. Of all computer applications, word processing is the most common.
Chapter Three The UNIX Editors.
Introduction to Python Lesson 1 First Program. Learning Outcomes In this lesson the student will: 1.Learn some important facts about PC’s 2.Learn how.
Standard Toolbar Formatting Toolbar Paragraph Indent Markers Formatting Font Style And Font Size Setting Indents Paragraph alignment Paragraph And Line.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Exploring Spyder: An IDE for scientific computing
1. Starting 1 Let’s Learn Saenthong School, January – February 2016 Teacher: Aj. Andrew Davison, CoE, PSU Hat Yai Campus
Instructions for using this template. Remember this is Jeopardy, so where I have written “Answer” this is the prompt the students will see, and where.
Creating Web Pages in Word. Sharing Office Files Online Many Web pages are created using the HTML programming language. Web page editors are software.
 Learn the mechanics of using App Inventor to build apps.  Learn how to design an app’s user interface with the App Inventor Designer, and its behavior.
PROBLEM SOLVING WARM-UP Fill in the spaces using any operation to solve the following (!, (), -/+,÷,×): = 6.
Clojure.  Follow instructions on lynda.com  Can install all this in other ways, but this is the easiest way to get a development environment working.
How To Silent-Install The AVG Antivirus 2017 Using The DOS Command.
Introduction to iOS App Development Environment
Development Environment
R Brown-Bag Seminar 2.1 Topic: Introduction to R Presenter: Faith Musili ICRAF-Geoscience Lab.
MET4750 Techniques for Earth System Modeling
Release Numbers MATLAB is updated regularly
International Computer Driving Licence Syllabus version 5.0
Appendix A Barb Ericson Georgia Institute of Technology May 2006
COMP 170 – Introduction to Object Oriented Programming
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
How to Fix Boot Error 0xc000000e on Windows
Prepared by Kimberly Sayre and Jinbo Bi
Macrosystems EDDIE: Getting Started + Troubleshooting Tips
Windows Internet Explorer 7-Illustrated Essentials
Week 1 Computer Programming Year 9 – Unit 9.04
BSc in Digital Media, PSUIC
Getting Started: Amazon AWS Account Creation
Task 1 Computer Programming LEVEL 6 PROGRAMMING:
Map Reduce Workshop Monday November 12th, 2012
Download and Installation of code::blocks
Linux Operations and Administration
CSCE 206 Lab Structured Programming in C
Installations for Course
McAfee.com/activate. Mcafee Activate
Presentation transcript:

Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”

What is Python? Python is a programming language that is: 1. Easy to use. It reads like English: if temperature < 30: print “Wear a hat.” 2. Free and widely used. It’s the fifth-most popular language in the world! (Source: tiobe.com) 3. Great for doing science. Many common tasks like importing spreadsheet data, curve fitting, and solving differential equations are easy in Python.

What is IPython Notebook? “I” stands for “interactive.” It’s a way to run Python in your browser: You can also annotate your code and share it with others. There is no difference between the Python code in IPython Notebooks and.py files.

How to Run Python Option 1. Run Locally in IPython Notebook (recommended) Code in your browser. Calculations are performed by your own computer. You will have to install Python, but you don’t have to depend on an Internet connection, files stay on your own computer, and calculations are free. Option 2: Run on the Web at wakari.io Code in your browser. Calculations are performed by computers in the cloud. You won’t have to install any software, but you will have to pay if you are doing anything more than a casual calculation. Option 3: Run Locally with a Text Editor (advanced) Code in a text editor. Calculations are performed by your own computer. If you already have some programming background, you might prefer to code in vim, emacs, or another text editor. This option is faster and more versatile, but will not be covered in this tutorial.

Option 1: Install Python Locally To run Python on your own computer, download the standard Anaconda package from Installers for both Windows and Mac are available. Select Python 2.7.

Option 1: Start Python (Mac) To start IPython Notebook: 1.Open spotlight and run Terminal: 1.Type ipython notebook and press enter : type here

Option 1: Start Python (PC) Open the command prompt from the Start menu (various Windows versions shown): 1.Click on the Start button (or its equivalent). 2.Search for “command prompt.” Alternatively, run cmd. 3.Start the prompt. A black console will open.

Option 1: Run Python (PC) This is the command prompt console: 1.Type ipython notebook and press enter. 2.The Python kernel will start in the console. That’s all the text under the red box above. 3.IPython Notebook will start in your browser. If it doesn’t, navigate to

Option 1: Start a Notebook (Mac and PC) Python will open in your browser: click here

Option 1: Start a Notebook (Mac and PC) A new tab will open: You can start typing Python commands where indicated. start typing here

Option 2: Running on the Web You can also run Python on the web at You will need to make an account before you can sign in. It’s free. sign up here

Option 2: Running on the Web When you sign in, you will see this: Click “New Notebook” to get started. click here

Option 2: Running on the Web When you sign in, you will see this: You can start typing in the indicated cell. start typing here

Hello World! To verify everything is working correctly, enter in the code below. (Don’t worry about understanding what any of it means yet.) import numpy as np %matplotlib inline import matplotlib import matplotlib.pyplot as plt print "Hello world!" x = np.linspace(0,2*np.pi,100) y = np.sin(x) plt.plot(x,y,"k") plt.savefig("plot.png") Notice that when you press enter, your cursor will go to the next line. To run the code, press shift-enter. If you are copying and pasting and have a problem, try removing the blank lines in the code, which may contain some non-printing characters.

Hello World! You should see it print out “Hello world!” and a simple graph (highlighted in red). A new cell appears after execution. You can type in more code, or change the code you just wrote and run it again. Congratulations! You just ran your first Python program!

The Working Directory (Local) When you run Python locally, notebooks will be saved into the current directory. This is determined by the directory that Python is started from. To change it: Mac: type cd some_directory before typing ipython notebook. PC: type cd C:\some_directory\ before typing ipython notebook. In the “Hello world!” script, the line plt.savefig("plot.png”) should have saved a PNG of the graph to your working directory.

The Working Directory (Wakari) When you run Python on Wakari, notebooks will be saved into a cloud directory, which is shown on the left hand side. Running the “Hello world!” script should create plot.png. Press the download button to copy it to your own computer.

Summary 1.Python is a free, popular, and versatile programming language for doing science. IPython Notebook lets you code in your browser. 2.You can run Python locally or on the cloud. 3.Enter code in cells. Pressing enter goes to the next line. Pressing shift- enter executes the code in the current cell. 4.Files will be written to the working directory. Set it before starting Python.