Skip to content

Commit 3553455

Browse files
committed
checking in version 1 of the book
1 parent 10648dc commit 3553455

File tree

548 files changed

+2303092
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

548 files changed

+2303092
-13
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
__pycache__/
33
*.py[cod]
44
*$py.class
5+
.sass-cache/
56

67
# C extensions
78
*.so

Gemfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
source 'https://rubygems.org'
2+
3+
group :jekyll_plugins do
4+
gem 'github-pages'
5+
gem 'jekyll-feed', '~> 0.6'
6+
7+
# Textbook plugins
8+
gem 'jekyll-redirect-from'
9+
gem 'jekyll-scholar'
10+
end
11+
12+
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
13+
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
14+
15+
# Performance-booster for watching directories on Windows
16+
gem 'wdm', '~> 0.1.0' if Gem.win_platform?
17+
18+
# Development tools
19+
gem 'guard', '~> 2.14.2'
20+
gem 'guard-jekyll-plus', '~> 2.0.2'
21+
gem 'guard-livereload', '~> 2.5.2'

Gemfile.lock

Lines changed: 306 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,306 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (4.2.10)
5+
i18n (~> 0.7)
6+
minitest (~> 5.1)
7+
thread_safe (~> 0.3, >= 0.3.4)
8+
tzinfo (~> 1.1)
9+
addressable (2.5.2)
10+
public_suffix (>= 2.0.2, < 4.0)
11+
bibtex-ruby (4.4.7)
12+
latex-decode (~> 0.0)
13+
citeproc (1.0.9)
14+
namae (~> 1.0)
15+
citeproc-ruby (1.1.10)
16+
citeproc (~> 1.0, >= 1.0.9)
17+
csl (~> 1.5)
18+
coderay (1.1.2)
19+
coffee-script (2.4.1)
20+
coffee-script-source
21+
execjs
22+
coffee-script-source (1.11.1)
23+
colorator (1.1.0)
24+
commonmarker (0.17.13)
25+
ruby-enum (~> 0.5)
26+
concurrent-ruby (1.1.4)
27+
csl (1.5.0)
28+
namae (~> 1.0)
29+
csl-styles (1.0.1.9)
30+
csl (~> 1.0)
31+
dnsruby (1.61.2)
32+
addressable (~> 2.5)
33+
em-websocket (0.5.1)
34+
eventmachine (>= 0.12.9)
35+
http_parser.rb (~> 0.6.0)
36+
ethon (0.11.0)
37+
ffi (>= 1.3.0)
38+
eventmachine (1.2.7)
39+
execjs (2.7.0)
40+
faraday (0.15.4)
41+
multipart-post (>= 1.2, < 3)
42+
ffi (1.9.25)
43+
formatador (0.2.5)
44+
forwardable-extended (2.6.0)
45+
gemoji (3.0.0)
46+
github-pages (193)
47+
activesupport (= 4.2.10)
48+
github-pages-health-check (= 1.8.1)
49+
jekyll (= 3.7.4)
50+
jekyll-avatar (= 0.6.0)
51+
jekyll-coffeescript (= 1.1.1)
52+
jekyll-commonmark-ghpages (= 0.1.5)
53+
jekyll-default-layout (= 0.1.4)
54+
jekyll-feed (= 0.11.0)
55+
jekyll-gist (= 1.5.0)
56+
jekyll-github-metadata (= 2.9.4)
57+
jekyll-mentions (= 1.4.1)
58+
jekyll-optional-front-matter (= 0.3.0)
59+
jekyll-paginate (= 1.1.0)
60+
jekyll-readme-index (= 0.2.0)
61+
jekyll-redirect-from (= 0.14.0)
62+
jekyll-relative-links (= 0.5.3)
63+
jekyll-remote-theme (= 0.3.1)
64+
jekyll-sass-converter (= 1.5.2)
65+
jekyll-seo-tag (= 2.5.0)
66+
jekyll-sitemap (= 1.2.0)
67+
jekyll-swiss (= 0.4.0)
68+
jekyll-theme-architect (= 0.1.1)
69+
jekyll-theme-cayman (= 0.1.1)
70+
jekyll-theme-dinky (= 0.1.1)
71+
jekyll-theme-hacker (= 0.1.1)
72+
jekyll-theme-leap-day (= 0.1.1)
73+
jekyll-theme-merlot (= 0.1.1)
74+
jekyll-theme-midnight (= 0.1.1)
75+
jekyll-theme-minimal (= 0.1.1)
76+
jekyll-theme-modernist (= 0.1.1)
77+
jekyll-theme-primer (= 0.5.3)
78+
jekyll-theme-slate (= 0.1.1)
79+
jekyll-theme-tactile (= 0.1.1)
80+
jekyll-theme-time-machine (= 0.1.1)
81+
jekyll-titles-from-headings (= 0.5.1)
82+
jemoji (= 0.10.1)
83+
kramdown (= 1.17.0)
84+
liquid (= 4.0.0)
85+
listen (= 3.1.5)
86+
mercenary (~> 0.3)
87+
minima (= 2.5.0)
88+
nokogiri (>= 1.8.2, < 2.0)
89+
rouge (= 2.2.1)
90+
terminal-table (~> 1.4)
91+
github-pages-health-check (1.8.1)
92+
addressable (~> 2.3)
93+
dnsruby (~> 1.60)
94+
octokit (~> 4.0)
95+
public_suffix (~> 2.0)
96+
typhoeus (~> 1.3)
97+
guard (2.14.2)
98+
formatador (>= 0.2.4)
99+
listen (>= 2.7, < 4.0)
100+
lumberjack (>= 1.0.12, < 2.0)
101+
nenv (~> 0.1)
102+
notiffany (~> 0.0)
103+
pry (>= 0.9.12)
104+
shellany (~> 0.0)
105+
thor (>= 0.18.1)
106+
guard-compat (1.2.1)
107+
guard-jekyll-plus (2.0.2)
108+
guard (~> 2.10, >= 2.10.3)
109+
guard-compat (~> 1.1)
110+
jekyll (>= 1.0.0)
111+
guard-livereload (2.5.2)
112+
em-websocket (~> 0.5)
113+
guard (~> 2.8)
114+
guard-compat (~> 1.0)
115+
multi_json (~> 1.8)
116+
html-pipeline (2.9.1)
117+
activesupport (>= 2)
118+
nokogiri (>= 1.4)
119+
http_parser.rb (0.6.0)
120+
i18n (0.9.5)
121+
concurrent-ruby (~> 1.0)
122+
jekyll (3.7.4)
123+
addressable (~> 2.4)
124+
colorator (~> 1.0)
125+
em-websocket (~> 0.5)
126+
i18n (~> 0.7)
127+
jekyll-sass-converter (~> 1.0)
128+
jekyll-watch (~> 2.0)
129+
kramdown (~> 1.14)
130+
liquid (~> 4.0)
131+
mercenary (~> 0.3.3)
132+
pathutil (~> 0.9)
133+
rouge (>= 1.7, < 4)
134+
safe_yaml (~> 1.0)
135+
jekyll-avatar (0.6.0)
136+
jekyll (~> 3.0)
137+
jekyll-coffeescript (1.1.1)
138+
coffee-script (~> 2.2)
139+
coffee-script-source (~> 1.11.1)
140+
jekyll-commonmark (1.2.0)
141+
commonmarker (~> 0.14)
142+
jekyll (>= 3.0, < 4.0)
143+
jekyll-commonmark-ghpages (0.1.5)
144+
commonmarker (~> 0.17.6)
145+
jekyll-commonmark (~> 1)
146+
rouge (~> 2)
147+
jekyll-default-layout (0.1.4)
148+
jekyll (~> 3.0)
149+
jekyll-feed (0.11.0)
150+
jekyll (~> 3.3)
151+
jekyll-gist (1.5.0)
152+
octokit (~> 4.2)
153+
jekyll-github-metadata (2.9.4)
154+
jekyll (~> 3.1)
155+
octokit (~> 4.0, != 4.4.0)
156+
jekyll-mentions (1.4.1)
157+
html-pipeline (~> 2.3)
158+
jekyll (~> 3.0)
159+
jekyll-optional-front-matter (0.3.0)
160+
jekyll (~> 3.0)
161+
jekyll-paginate (1.1.0)
162+
jekyll-readme-index (0.2.0)
163+
jekyll (~> 3.0)
164+
jekyll-redirect-from (0.14.0)
165+
jekyll (~> 3.3)
166+
jekyll-relative-links (0.5.3)
167+
jekyll (~> 3.3)
168+
jekyll-remote-theme (0.3.1)
169+
jekyll (~> 3.5)
170+
rubyzip (>= 1.2.1, < 3.0)
171+
jekyll-sass-converter (1.5.2)
172+
sass (~> 3.4)
173+
jekyll-scholar (5.14.0)
174+
bibtex-ruby (~> 4.0, >= 4.0.13)
175+
citeproc-ruby (~> 1.0)
176+
csl-styles (~> 1.0)
177+
jekyll (~> 3.0)
178+
jekyll-seo-tag (2.5.0)
179+
jekyll (~> 3.3)
180+
jekyll-sitemap (1.2.0)
181+
jekyll (~> 3.3)
182+
jekyll-swiss (0.4.0)
183+
jekyll-theme-architect (0.1.1)
184+
jekyll (~> 3.5)
185+
jekyll-seo-tag (~> 2.0)
186+
jekyll-theme-cayman (0.1.1)
187+
jekyll (~> 3.5)
188+
jekyll-seo-tag (~> 2.0)
189+
jekyll-theme-dinky (0.1.1)
190+
jekyll (~> 3.5)
191+
jekyll-seo-tag (~> 2.0)
192+
jekyll-theme-hacker (0.1.1)
193+
jekyll (~> 3.5)
194+
jekyll-seo-tag (~> 2.0)
195+
jekyll-theme-leap-day (0.1.1)
196+
jekyll (~> 3.5)
197+
jekyll-seo-tag (~> 2.0)
198+
jekyll-theme-merlot (0.1.1)
199+
jekyll (~> 3.5)
200+
jekyll-seo-tag (~> 2.0)
201+
jekyll-theme-midnight (0.1.1)
202+
jekyll (~> 3.5)
203+
jekyll-seo-tag (~> 2.0)
204+
jekyll-theme-minimal (0.1.1)
205+
jekyll (~> 3.5)
206+
jekyll-seo-tag (~> 2.0)
207+
jekyll-theme-modernist (0.1.1)
208+
jekyll (~> 3.5)
209+
jekyll-seo-tag (~> 2.0)
210+
jekyll-theme-primer (0.5.3)
211+
jekyll (~> 3.5)
212+
jekyll-github-metadata (~> 2.9)
213+
jekyll-seo-tag (~> 2.0)
214+
jekyll-theme-slate (0.1.1)
215+
jekyll (~> 3.5)
216+
jekyll-seo-tag (~> 2.0)
217+
jekyll-theme-tactile (0.1.1)
218+
jekyll (~> 3.5)
219+
jekyll-seo-tag (~> 2.0)
220+
jekyll-theme-time-machine (0.1.1)
221+
jekyll (~> 3.5)
222+
jekyll-seo-tag (~> 2.0)
223+
jekyll-titles-from-headings (0.5.1)
224+
jekyll (~> 3.3)
225+
jekyll-watch (2.1.2)
226+
listen (~> 3.0)
227+
jemoji (0.10.1)
228+
gemoji (~> 3.0)
229+
html-pipeline (~> 2.2)
230+
jekyll (~> 3.0)
231+
kramdown (1.17.0)
232+
latex-decode (0.3.1)
233+
liquid (4.0.0)
234+
listen (3.1.5)
235+
rb-fsevent (~> 0.9, >= 0.9.4)
236+
rb-inotify (~> 0.9, >= 0.9.7)
237+
ruby_dep (~> 1.2)
238+
lumberjack (1.0.13)
239+
mercenary (0.3.6)
240+
method_source (0.9.2)
241+
mini_portile2 (2.4.0)
242+
minima (2.5.0)
243+
jekyll (~> 3.5)
244+
jekyll-feed (~> 0.9)
245+
jekyll-seo-tag (~> 2.1)
246+
minitest (5.11.3)
247+
multi_json (1.13.1)
248+
multipart-post (2.0.0)
249+
namae (1.0.1)
250+
nenv (0.3.0)
251+
nokogiri (1.9.1)
252+
mini_portile2 (~> 2.4.0)
253+
notiffany (0.1.1)
254+
nenv (~> 0.1)
255+
shellany (~> 0.0)
256+
octokit (4.13.0)
257+
sawyer (~> 0.8.0, >= 0.5.3)
258+
pathutil (0.16.2)
259+
forwardable-extended (~> 2.6)
260+
pry (0.12.2)
261+
coderay (~> 1.1.0)
262+
method_source (~> 0.9.0)
263+
public_suffix (2.0.5)
264+
rb-fsevent (0.10.3)
265+
rb-inotify (0.10.0)
266+
ffi (~> 1.0)
267+
rouge (2.2.1)
268+
ruby-enum (0.7.2)
269+
i18n
270+
ruby_dep (1.5.0)
271+
rubyzip (1.2.2)
272+
safe_yaml (1.0.4)
273+
sass (3.7.2)
274+
sass-listen (~> 4.0.0)
275+
sass-listen (4.0.0)
276+
rb-fsevent (~> 0.9, >= 0.9.4)
277+
rb-inotify (~> 0.9, >= 0.9.7)
278+
sawyer (0.8.1)
279+
addressable (>= 2.3.5, < 2.6)
280+
faraday (~> 0.8, < 1.0)
281+
shellany (0.0.1)
282+
terminal-table (1.8.0)
283+
unicode-display_width (~> 1.1, >= 1.1.1)
284+
thor (0.20.3)
285+
thread_safe (0.3.6)
286+
typhoeus (1.3.1)
287+
ethon (>= 0.9.0)
288+
tzinfo (1.2.5)
289+
thread_safe (~> 0.1)
290+
unicode-display_width (1.4.1)
291+
292+
PLATFORMS
293+
ruby
294+
295+
DEPENDENCIES
296+
github-pages
297+
guard (~> 2.14.2)
298+
guard-jekyll-plus (~> 2.0.2)
299+
guard-livereload (~> 2.5.2)
300+
jekyll-feed (~> 0.6)
301+
jekyll-redirect-from
302+
jekyll-scholar
303+
tzinfo-data
304+
305+
BUNDLED WITH
306+
1.17.2

Guardfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
guard 'jekyll-plus', serve: true do
2+
watch /.*/
3+
ignore /^_site/
4+
end
5+
6+
guard 'livereload' do
7+
watch /.*/
8+
end

Makefile

100644100755
Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,33 @@
1-
setup:
2-
#python3 -m venv ~/.py4ds
3-
#source ~/.py4ds/bin/activate
1+
.PHONY: help book clean serve
42

5-
makesite:
6-
jupyter-book create py4ds
3+
help:
4+
@echo "Please use 'make <target>' where <target> is one of:"
5+
@echo " install to install the necessary dependencies for jupyter-book to build"
6+
@echo " book to convert the `content/` folder into Jekyll markdown in `_build/`"
7+
@echo " clean to clean out site build files"
8+
@echo " runall to run all notebooks in-place, capturing outputs with the notebook"
9+
@echo " serve to serve the repository locally with Jekyll"
10+
@echo " build to build the site HTML locally with Jekyll and store in _site/"
711

8-
buildsite:
9-
jupyter-book build py4ds
1012

1113
install:
12-
pip install --upgrade pip &&\
13-
pip install -r requirements.txt
14+
gem install bundler
15+
bundle install
16+
17+
book:
18+
#copy all colab files to lessons
19+
cp *.ipynb content/lessons/
20+
jupyter-book build ./
21+
22+
runall:
23+
jupyter-book run ./content
24+
25+
clean:
26+
python scripts/clean.py
27+
28+
serve:
29+
bundle exec guard
30+
31+
site:
32+
bundle exec jekyll build
33+
touch _site/.nojekyll

0 commit comments

Comments
 (0)