Skip to content

Commit a3eaa5e

Browse files
committed
cleaned up a few things in the first lecture
1 parent 83df821 commit a3eaa5e

File tree

5 files changed

+77
-93
lines changed

5 files changed

+77
-93
lines changed

slides_sources/source/conf.py

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
# If extensions (or modules to document with autodoc) are in another directory,
2020
# add these directories to sys.path here. If the directory is relative to the
2121
# documentation root, use os.path.abspath to make it absolute, like shown here.
22-
#sys.path.insert(0, os.path.abspath('.'))
22+
# sys.path.insert(0, os.path.abspath('.'))
2323

2424
# -- General configuration ------------------------------------------------
2525

2626
# If your documentation needs a minimal Sphinx version, state it here.
27-
#needs_sphinx = '1.0'
27+
# needs_sphinx = '1.0'
2828

2929
# Add any Sphinx extension module names here, as strings. They can be
3030
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -34,8 +34,8 @@
3434
'sphinx.ext.intersphinx',
3535
'sphinx.ext.todo',
3636
'sphinx.ext.coverage',
37-
#'sphinx.ext.pngmath',
38-
'sphinx.ext.mathjax',
37+
# 'sphinx.ext.pngmath',
38+
# 'sphinx.ext.mathjax',
3939
'sphinx.ext.ifconfig',
4040
'IPython.sphinxext.ipython_console_highlighting',
4141
'IPython.sphinxext.ipython_directive',
@@ -48,7 +48,7 @@
4848
source_suffix = '.rst'
4949

5050
# The encoding of source files.
51-
#source_encoding = 'utf-8-sig'
51+
# source_encoding = 'utf-8-sig'
5252

5353
# The master toctree document.
5454
master_doc = 'index'
@@ -68,41 +68,41 @@
6868

6969
# The language for content autogenerated by Sphinx. Refer to documentation
7070
# for a list of supported languages.
71-
#language = None
71+
# language = None
7272

7373
# There are two options for replacing |today|: either, you set today to some
7474
# non-false value, then it is used:
75-
#today = ''
75+
# today = ''
7676
# Else, today_fmt is used as the format for a strftime call.
77-
#today_fmt = '%B %d, %Y'
77+
# today_fmt = '%B %d, %Y'
7878

7979
# List of patterns, relative to source directory, that match files and
8080
# directories to ignore when looking for source files.
8181
exclude_patterns = []
8282

8383
# The reST default role (used for this markup: `text`) to use for all
8484
# documents.
85-
#default_role = None
85+
# default_role = None
8686

8787
# If true, '()' will be appended to :func: etc. cross-reference text.
88-
#add_function_parentheses = True
88+
# add_function_parentheses = True
8989

9090
# If true, the current module name will be prepended to all description
9191
# unit titles (such as .. function::).
92-
#add_module_names = True
92+
# add_module_names = True
9393

9494
# If true, sectionauthor and moduleauthor directives will be shown in the
9595
# output. They are ignored by default.
96-
#show_authors = False
96+
# show_authors = False
9797

9898
# The name of the Pygments (syntax highlighting) style to use.
9999
pygments_style = 'colorful'
100100

101101
# A list of ignored prefixes for module index sorting.
102-
#modindex_common_prefix = []
102+
# modindex_common_prefix = []
103103

104104
# If true, keep warnings as "system message" paragraphs in the built documents.
105-
#keep_warnings = False
105+
# keep_warnings = False
106106

107107

108108
# -- Options for HTML output ----------------------------------------------
@@ -114,27 +114,27 @@
114114
# Theme options are theme-specific and customize the look and feel of a theme
115115
# further. For a list of options available for each theme, see the
116116
# documentation.
117-
#html_theme_options = {}
117+
# html_theme_options = {}
118118

119119
# Add any paths that contain custom themes here, relative to this directory.
120-
#html_theme_path = []
120+
# html_theme_path = []
121121
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
122122

123123
# The name for this set of Sphinx documents. If None, it defaults to
124124
# "<project> v<release> documentation".
125-
#html_title = None
125+
# html_title = None
126126

127127
# A shorter title for the navigation bar. Default is the same as html_title.
128-
#html_short_title = None
128+
# html_short_title = None
129129

130130
# The name of an image file (relative to this directory) to place at the top
131131
# of the sidebar.
132-
#html_logo = None
132+
# html_logo = None
133133

134134
# The name of an image file (within the static path) to use as favicon of the
135135
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
136136
# pixels large.
137-
#html_favicon = None
137+
# html_favicon = None
138138

139139
# Add any paths that contain custom static files (such as style sheets) here,
140140
# relative to this directory. They are copied after the builtin static files,
@@ -144,48 +144,48 @@
144144
# Add any extra paths that contain custom files (such as robots.txt or
145145
# .htaccess) here, relative to this directory. These files are copied
146146
# directly to the root of the documentation.
147-
#html_extra_path = []
147+
# html_extra_path = []
148148

149149
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
150150
# using the given strftime format.
151-
#html_last_updated_fmt = '%b %d, %Y'
151+
# html_last_updated_fmt = '%b %d, %Y'
152152

153153
# If true, SmartyPants will be used to convert quotes and dashes to
154154
# typographically correct entities.
155-
#html_use_smartypants = True
155+
# html_use_smartypants = True
156156

157157
# Custom sidebar templates, maps document names to template names.
158-
#html_sidebars = {}
158+
# html_sidebars = {}
159159

160160
# Additional templates that should be rendered to pages, maps page names to
161161
# template names.
162-
#html_additional_pages = {}
162+
# html_additional_pages = {}
163163

164164
# If false, no module index is generated.
165-
#html_domain_indices = True
165+
# html_domain_indices = True
166166

167167
# If false, no index is generated.
168-
#html_use_index = True
168+
# html_use_index = True
169169

170170
# If true, the index is split into individual pages for each letter.
171-
#html_split_index = False
171+
# html_split_index = False
172172

173173
# If true, links to the reST sources are added to the pages.
174-
#html_show_sourcelink = True
174+
# html_show_sourcelink = True
175175

176176
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
177-
#html_show_sphinx = True
177+
# html_show_sphinx = True
178178

179179
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
180-
#html_show_copyright = True
180+
# html_show_copyright = True
181181

182182
# If true, an OpenSearch description file will be output, and all pages will
183183
# contain a <link> tag referring to it. The value of this option must be the
184184
# base URL from which the finished HTML is served.
185-
#html_use_opensearch = ''
185+
# html_use_opensearch = ''
186186

187187
# This is the file name suffix for HTML files (e.g. ".xhtml").
188-
#html_file_suffix = None
188+
# html_file_suffix = None
189189

190190
# Output file base name for HTML help builder.
191191
htmlhelp_basename = 'IntroToPythonDoc'
@@ -195,13 +195,13 @@
195195

196196
latex_elements = {
197197
# The paper size ('letterpaper' or 'a4paper').
198-
#'papersize': 'letterpaper',
198+
# 'papersize': 'letterpaper',
199199

200200
# The font size ('10pt', '11pt' or '12pt').
201-
#'pointsize': '10pt',
201+
# 'pointsize': '10pt',
202202

203203
# Additional stuff for the LaTeX preamble.
204-
#'preamble': '',
204+
# 'preamble': '',
205205
}
206206

207207
# Grouping the document tree into LaTeX files. List of tuples
@@ -214,23 +214,23 @@
214214

215215
# The name of an image file (relative to this directory) to place at the top of
216216
# the title page.
217-
#latex_logo = None
217+
# latex_logo = None
218218

219219
# For "manual" documents, if this is true, then toplevel headings are parts,
220220
# not chapters.
221-
#latex_use_parts = False
221+
# latex_use_parts = False
222222

223223
# If true, show page references after internal links.
224-
#latex_show_pagerefs = False
224+
# latex_show_pagerefs = False
225225

226226
# If true, show URL addresses after external links.
227-
#latex_show_urls = False
227+
# latex_show_urls = False
228228

229229
# Documents to append as an appendix to all manuals.
230-
#latex_appendices = []
230+
# latex_appendices = []
231231

232232
# If false, no module index is generated.
233-
#latex_domain_indices = True
233+
# latex_domain_indices = True
234234

235235

236236
# -- Options for manual page output ---------------------------------------
@@ -243,7 +243,7 @@
243243
]
244244

245245
# If true, show URL addresses after external links.
246-
#man_show_urls = False
246+
# man_show_urls = False
247247

248248

249249
# -- Options for Texinfo output -------------------------------------------

slides_sources/source/session01.rst

Lines changed: 27 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
Session One: Introductions
33
**************************
44

5-
| In which you are introduced to this class, your instructors, your environment
6-
| and your new best friend, Python.
5+
Introductions
6+
=============
7+
8+
In which you are introduced to this class, your instructors, your environment,
9+
and your new best friend, Python.
10+
11+
|
712
813
.. image:: /_static/python.png
914
:align: center
@@ -37,15 +42,15 @@ In which we meet each-other
3742
Your instructors
3843
----------------
3944

40-
.. rst-class:: center large
45+
.. rst-class:: center medium
4146

4247
| Christopher Barker
4348
| (PythonCHB at gmail dot com)
4449
|
4550
4651
.. nextslide::
4752

48-
.. rst-class:: center large
53+
.. rst-class:: center medium
4954

5055
| Maria McKinley
5156
| (maria at mariakathryn dot net)
@@ -54,7 +59,7 @@ Your instructors
5459
Who are you?
5560
-------------
5661

57-
.. rst-class:: center large
62+
.. rst-class:: center medium
5863

5964
Tell us a tiny bit about yourself:
6065

@@ -153,45 +158,7 @@ Lightning Talks
153158

154159

155160
Python Ecosystem
156-
-----------------
157-
158-
Python is Used for:
159-
160-
* CS education (this course!)
161-
* Application scripting (GIS, GNU Radio, Blender...)
162-
* Systems administration and "glue"
163-
* Web applications (Django etc. etc. etc.)
164-
* Scientific/technical computing (a la MATLAB, R, .... )
165-
* Software tools (automated software testing, distributed version control, ...)
166-
* Research (natural language, graph theory, distributed computing, ...)
167-
168-
An unusually large number of niches -- versatile
169-
170-
.. nextslide::
171-
172-
Used by:
173-
174-
* Beginners
175-
* Professional software developers, computer system administrators, ...
176-
* Professionals OTHER THAN computer specialists: biologists, urban planners, ....
177-
178-
An unusually large number of types of users -- versatile
179-
180-
You can be productive in Python WITHOUT full-time immersion!
181-
182-
183-
Python Features
184-
---------------
185-
186-
Gets many things right:
187-
188-
* Readable -- looks nice, makes sense
189-
* No ideology about best way to program -- object-oriented programming, functional, etc.
190-
* No platform preference -- Windows, Mac, Linux, ...
191-
* Easy to connect to other languages -- C, Fortran - essential for science/math
192-
* Large standard library
193-
* Even larger network of external packages
194-
* Countless conveniences, large and small, make it pleasant to work with
161+
================
195162

196163

197164
What is Python?
@@ -204,7 +171,6 @@ What is Python?
204171
* Byte-compiled
205172
* Interpreted
206173

207-
208174
.. nextslide::
209175

210176
.. rst-class:: center large
@@ -215,7 +181,6 @@ But what does that mean?
215181
Python Features
216182
---------------
217183

218-
219184
.. rst-class:: build
220185

221186
* Unlike C, C++, C\#, Java ... More like Ruby, Lisp, Perl, Javascript
@@ -339,7 +304,7 @@ Your Command Line (cli)
339304

340305
Having some facility on the command line is important
341306

342-
We won't cover this in class, so if you are not comfortable,
307+
We won't cover this much in class, so if you are not comfortable,
343308
please bone up at home.
344309

345310
I suggest running through the **cli** tutorial at "learn code the hard way":
@@ -350,7 +315,7 @@ http://cli.learncodethehardway.org/book/
350315

351316
Most of the demos in class, etc, will be done using the "bash" command line shell on OS-X. This is identical to the bash shell on Linux.
352317

353-
Windows provides the "DOS" command line, which is OK, but pretty old an limited, or "Power Shell" -- a more modern, powerful, flexible command shell.
318+
Windows provides the "DOS" command line, which is OK, but pretty old and limited, or "Power Shell" -- a more modern, powerful, flexible command shell.
354319

355320
If you are comfortable with either of these -- go for it.
356321

@@ -374,8 +339,21 @@ That last thing you see, ``>>>`` is the "Python prompt".
374339
375340
This is where you type code.
376341
342+
LAB: Getting set up
343+
-------------------
344+
345+
BEfore we move on -- we need to get all of us on tehsame page, with teh tools we need for class.
346+
347+
You will find instructions for how to get python, etc, up and running on your machine here:
377348
378-
.. nextslide:: Python in the Interpreter
349+
**Windows:** ::ref:`python_for_windows`
350+
351+
**OS-X:** ::ref:`python_for_mac`
352+
353+
**Linux:** ::ref:`python_for_linux`
354+
355+
Python in the Interpreter
356+
-------------------------
379357
380358
Try it out:
381359

slides_sources/source/supplements/python_for_linux.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _python_for_linux:
2+
13
******************************
24
Setting Up Python For Linux
35
******************************

0 commit comments

Comments
 (0)