PyDoc Strings >>> def foo(a) :... "This the Foo function"... return str(a+1)... >>> help(foo) or from command line, pydoc module.foo.

Slides:



Advertisements
Similar presentations
HTML Basic Lecture What is HTML? HTML (Hyper Text Markup Language) is a a standard markup language used for creating and publishing documents on.
Advertisements

Computing – Weekly Review By Callum Innes HTML WWW WYSIWYG URL Hyperlink.
1 Lesson 5. 2 R3 R1 R5 R4 R6 R2 B B A A
Html: getting started HTML is hyper text markup language. It is what web browsers look at on the Internet. HTML documents should be created in a simple.
HTML Creating Web pages. HTML Hyper Text Markup Language Not programming, but a markup language using tags to format text in Web browsers.
HTML Creating Web pages. HTML Hyper Text Markup Language Not programming, but a markup language using tags to format text in Web browsers.
Adding HTML to Blackboard
Introduction to HTML CPS470 Software Engineering Fall 1998.
Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 31-Oct-2006 A Python Tutorial Kurt Schwehr 31 Oct 2006.
1 CA201 Word Application Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college.
Introduction to HTML 2006 INT197B. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Introduction to HTML 2004 CIS101. What is the Internet? Global network of computers that are connected and communicate via a series of Protocols Protocols.
Applets, HTML and GUI’s Recitation – 04/11/2008 CS 180 Department of Computer Science, Purdue University.
Glencoe Digital Communication Tools Create a Web Page with HTML Chapter Contents Lesson 4.1Lesson 4.1 Get Started with HTML (85) Lesson 4.2Lesson 4.2 Format.
Overview of HTML. Three Different Approaches  Text editor like Notepad  HTML editor such as: –KompoZer –DreamWeaver –Microsoft Expression Web –iWeb.
Slide 1 Today you will: think about criteria for judging a website understand that an effective website will match the needs and interests of users use.
URLs for Pictures ht.jpg
Exploring Microsoft Office XP - Microsoft Word 2002 Chapter 61 Exploring Microsoft Word Chapter 6 Creating a Home Page and Web Site By Robert T. Grauer.
ACM 511 HTML Week -1 ACM 511 Course Notes. Books ACM 511 Course Notes.
Lecture # 3 HTML and Arrays. Today Questions: From notes/reading/life? From Lab # 2 – Preview of Lab # 2 1.Introduce: How do you make a Web Page?: HTML.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 30 – Bookstore Application: Client Tier Introducing.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
HTML Hyper-Text Markup Language or tags. HTML is a “tag” language Open and close tags Tags identified with angle brackets Basic format content (shorthand.
Unit 1 — HTML BASICS Lesson 2 — HTML Organization Techniques.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Objectives Prior Knowledge VocabularyEssential True.
HTML and XML Behind Web Authoring Tools. 2 Objectives Introduce HTML Learn HTML Step by step Introduce XML.
Title Center for Coastal and Ocean Mapping NOAA/UNH Joint Hydrographic Center 31-Oct-2006 A Python Tutorial Kurt Schwehr 31 Oct 2006.
Just Enough HTML How to Create Basic HTML Documents.
INTRODUCTION. What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is not a programming language,
Introduction To HTML.  HTML stands for Hyper Text Markup Language.  HTML was developed by Tim Berners-Lee.  HTML is maintained by World Wide Web Consortium(W3C).
Lec.10 + (Chapter 8 & 9) GUI Java Applet Jiang (Jen) ZHENG July 6 th, 2005.
First Indico Workshop WEB FRAMEWORKS Adrian Mönnich May 2013 CERN.
HTML file format  Lesson Objective: Understanding HTML and how it is used to create web pages.  Learning Outcome:  Create a HTML page by interpreting.
Web Design. How do web pages work? Webpages are written in a code called HTML. Programs like Internet Explorer read the code, and then show it as a web.
Introduction to Computers 12/6/ BEGINNING HTML DESIGNING YOUR OWN WWW PAGES.
Starting to Use the Internet for Work Search strings: Boolean + Key terms e.g Hysterectomy AND subtotal Hysterectomy + subtotal = key terms AND = Boolean.
CS 330 Class 2: Programming Plan for Today Recap from last time More UNIX Begin HTML (material from Chapters 5-8) –Tags and attributes –Hyperlinks Features.
HTML HyperText Markup Language. Text Files An array of bytes stored on disk Each element of the array is a text character A text editor is a user program.
Unit 2, Lesson 7 Creating Web Pages and Web Documents.
©2012 Paula Matuszek CSC 9010: Text Mining Applications Lab 2 Dr. Paula Matuszek (610)
HTML Comprehensive Concepts and Techniques Second Edition Project 2 Creating a Web Site with Links.
Introduction to Web Authoring Ellen Cushman /wra210.htm Class mtg. #2.
HyperText Markup Language (HTML) Developing a Web Page.
HTML. INDEX Introduction to HTML Creating Web Pages Commands And Tags Web Page.
1 HTML. 2 Full forms WWW – world Wide Web HTTP – Hyper Text Transfer Protocol HTML – Hyper Text Markup Language.
Python Documentation Fran Fitzpatrick. Overview  Comments  Documentation Strings  Pydoc  Comments  Documentation Strings  Pydoc.
1 Introduction to HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
Machine Language Computer languages cannot be directly interpreted by the computer – they are not in binary. All commands need to be translated into binary.
Creating and Linking Web Pages
Exploring Microsoft Word 2000
Uppingham Community College
Documentation Generators
The Internet and HTML Code
CASE STUDY -HTML,URLs,HTTP
Dreamweaver – Project #1
Question 4 How did you use media technologies in the construction and research, planning and evaluation?
Chapter 1 HTML, XHTML, and the World Wide Web
SharePoint-Hosted Apps and JavaScript
A guide to HTML.
WEBSITE DESIGN Chp 1
Practice: first_document.html
Technology Guide 2 Software.
Chapter 1 HTML, XHTML, and the World Wide Web
Sphinx Python Documentation Generator
Overview of HTML.
Python Print “Hello, World!”.
Appending or adding to a file using python
Getting started with jQuery
Presentation transcript:

PyDoc Strings >>> def foo(a) :... "This the Foo function"... return str(a+1)... >>> help(foo) or from command line, pydoc module.foo

PyDoc Strings Pros: Builtin to Python Available from both Python CLI and shell Works with any Python object Cons: Doesn't support links or hyperlinks No standard for arguments or return types Resulting docs lack narrative or “big picture”

EPyDoc Enhanced PyDoc Strings, example: >>> def foo(a) :... '''This the Foo a : an a : number to L{bar}... '''... return str(a+1)

EPyDoc Pros: Added arguments, return values, links, etc Widespread usage, developers used to it “Backwards Compatible” with PyDoc Strings Cons: EPyDoc formatting not processed by help() HTML templates not using standard format Docs still lack narrative or “big picture”

Docutils Introduced ReStructured Text (ReST): Foo === Some text about the Foo function, `a link to URL `_ and **bold typeface**. Another paragraph, etc.

Docutils Pros: Full narrative documentation Robust, extensible markup Used for much more than just Python docs Cons: Only narrative, not tied into Python objects

Sphinx Extends ReStructured Text (ReST) for PyDoc: Foo === Some text about the :func:'Foo function ', `a link to URL `_ and **bold typeface**.

Sphinx Pros: PyDocs with ReST formatting in strings Narrative documentation including PyDocs Uses Django (Jinja) templates by default Most of the Python community is adopting Cons: EPyDoc (etc) markup not supported New project, not widely integrated yet