Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 31-Oct-2006 A Python Tutorial Kurt Schwehr 31 Oct 2006.

Slides:



Advertisements
Similar presentations
An Introduction to HTML What is HTML? Things to know about HTML Create your first web page Where to learn more.
Advertisements

Document Title Document Subtitle. Page 2 Divider 1 if Needed Subtitle if any.
JQuery Mobile. Benefits Required links Remember that we need to add the links to the head, in this order.
Learning the Basics – Lesson 1
An Introduction to Word Processing and Microsoft Word.
Hyper Text Markup Language.  HTML is a language for describing web pages.  HTML stands for Hyper Text Markup Language  HTML is not a programming language,
XHTML Basics. What is XHTML? XHTML is newer than the old HTML XHTML has stricter rules and does not allow some elements formerly used in HTML One benefit.
Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center Windows Python Tutorial Kurt Schwehr Jan 2007.
Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 31-Oct-2006 A Python Tutorial Kurt Schwehr 31 Oct 2006.
Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center Windows Python Tutorial Kurt Schwehr Jan 2007.
1 CA201 Word Application Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college.
 2002 Prentice Hall. All rights reserved. 1 Intro: Java/Python Differences JavaPython Compiled: javac MyClass.java java MyClass Interpreted: python MyProgram.py.
Web Page Development Identify elements of a Web Page Start Notepad
Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 13-Mar-2007 A Python Tutorial Part 2 Kurt Schwehr 13 Mar 2007.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Basic Web Page Design. Text book: HTML, XHTML, and CSS: Visual QuickStart Guide, Sixth Edition written by Elizabeth Castro. Software: Adobe® Dreamweaver®
Overview of HTML. Three Different Approaches  Text editor like Notepad  HTML editor such as: –KompoZer –DreamWeaver –Microsoft Expression Web –iWeb.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
CprE 288 – Quick intro for compiling C in Linux
1 Introduction to PHP. 2 What is this “PHP” thing? Official description: “PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open Source.
SqlReports Dean Dahlvang PSUG-MO March About Dean Dean Dahlvang Director of Administrative Technology for the Proctor.
18 People Surveyed HTML (HyperText Markup Language) HTML “tags” Describes structure Building blocks Headings, paragraphs, lists, links, images, quotes,
Title, meta, link, script.  The title looks like:  The tag defines the title of the document in the browser toolbar.  It also: ◦ Provides a title for.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
OBJECTIVES  What is HTML  What tools are needed  Creating a Web drive on campus (done only once)  HTML file layout  Some HTML tags  Creating and.
Internet and Distributed Representation of Agent Based Model by- Manish Sharma.
CSCI 1101 Intro to Computers 7.1 Learning HTML. 2 Introduction Web pages are written using HTML Two key concepts of HTML are:  Hypertext (links Web pages.
Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 31-Oct-2006 A Python Tutorial Kurt Schwehr 31 Oct 2006.
HTML Hyper Text Markup Language A simple introduction.
C-Map Tutorial How to create and save a concept map using C-Map, export a C-Map as an image, and export a C-Map as a webpage.
Just Enough HTML How to Create Basic HTML Documents.
Overview of HTML/XHTML Two Different Approaches  Text editor like Notepad  HTML editor such as: –KompoZer –DreamWeaver –Microsoft Expression Web –iWeb.
Introducing Python CS 4320, SPRING Format: Field widths and Alignment The string representation of a value can be padded out to a specific width.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
1 Creating Web Pages Part 1. 2 OVERVIEW: HTML-What is it? HyperText Markup Language, the authoring language used to create documents on the World Wide.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
HTML ( HYPER TEXT MARK UP LANGUAGE ). What is HTML HTML describes the content and format of web pages using tags. Ex. Title Tag: A title It’s the job.
Web Page Design Introduction. The ________________ is a large collection of pages stored on computers, or ______________ around the world. Hypertext ________.
Website Views, Page Titles, & Browsers Dreamweaver for College & Business Mrs. Wilson.
Introducing Python CS 4320, SPRING Lexical Structure Two aspects of Python syntax may be challenging to Java programmers Indenting ◦Indenting is.
Programming for GCSE 1.0 Beginning with Python T eaching L ondon C omputing Margaret Derrington KCL Easter 2014.
 The formatting applied to a document can affect: › How the reader interprets the document › How easily the document is read › The overall impression.
PROGRAMMING IN PYTHON LETS LEARN SOME CODE TOGETHER!
HTML Hyper Text Markup Language. The Basics u HTML documents contain “tags” which instruct the Browser software on how to present the information within.
 Simple UNIX commands  I/O techniques in C++  Solutions to Lab#0 problems  Solutions to Lab#1 problems 1.
HTML Tags BTT1O. HTML  Documents written in hypertext markup language can be interpreted by all web browsers.  This language lets the web page developer.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Word 2003 Working Together 1 Word 2003 and Your.
Basic Web Page Design. Text book: HTML, XHTML, and CSS: Visual QuickStart Guide, Sixth Edition written by Elizabeth Castro. Software: Adobe® Dreamweaver®
NXT File System Just like we’re able to store multiple programs and sound files to the NXT, we can store text files that contain information we specify.
Project 02 Creating and Editing a Web Page Concept Map of Unit Creating and Editing a Web Page Key Learning Understand the elements to create a web page.
XHTML Basics. What is XHTML? XHTML is newer than, but built upon, the original HTML (Hyper Text Markup Language) platform. XHTML has stricter rules and.
Chapter 4 and 5. Objectives Introduce markup: elements and attributes How browsers interpret HTML documents Basic structure of HTML document What do style.
HTML Hyper Text Markup Language. Agenda Basics Tools Important tags Tables & databases Forms Publishing at Stern.
Basic HTML Page 1. First Open Windows Notepad to type your HTML code 2.
Getting Started With HTML
Exploring Microsoft Word 2000
Lab 1 introduction, debrief
Essentials of HTML.
My web site..
Essentials of HTML.
HTML Intro.
Types, Truth, and Expressions (Part 2)
Nerd Website HTML.
HTML Structure.
Appending or adding to a file using python
HTML.
Python Modules.
Types, Truth, and Expressions (Part 2)
Getting Started With Web Page Creation Using HTML
Presentation transcript:

Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 31-Oct-2006 A Python Tutorial Kurt Schwehr 31 Oct 2006

Where is python on my machine?

Fink for unix software

Fink Commander

Emacs Cheat Sheet

Setting up ~/.emacs

Getting started

Strings

Getting help with the ‘tab’ key

More string operations

Lists are created with [ ]

The math module

Getting help on functions

More help

from math import *

The Decimal module

Converting between strings and numbers

If tests and indentation matters

for loops

Reading a file Adding a comma prevents the extra new line

Reading numbers from a file

A quick intro to time

Getting to the web documentation

Writing data to a file

Old school - gnuplot

Gnuplot in 3D

Saving gnuplot to gif or pdf

Writing a python file (aka module) env finds python in your path chmod +x dump.py./dump.py

Handling programs in a better way __name__ is set to main if the file is being executed

Making our code a proper function

Function parameters can be specified by name

Use this function from outside the file Whoops - no documentation!

Often it is good to give a parameter a default

Add some ‘doc strings’

Documentation as seen from ipython

Epydoc is Kurt’s favorite way to document python code Epydoc imports your file and creates html documentation

Here is the initial edydoc page Nice, but could be better Use markups in the doc string to tell epydoc more

Adding more to the file

Document the function