Skip to content

Commit 1ec1a3b

Browse files
committed
test
1 parent 7fe6468 commit 1ec1a3b

14 files changed

Lines changed: 430 additions & 34 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"# default_exp core"
10+
]
11+
},
12+
{
13+
"cell_type": "markdown",
14+
"metadata": {},
15+
"source": [
16+
"# module name here\n",
17+
"\n",
18+
"> API details."
19+
]
20+
},
21+
{
22+
"cell_type": "code",
23+
"execution_count": null,
24+
"metadata": {},
25+
"outputs": [],
26+
"source": [
27+
"#hide\n",
28+
"from nbdev.showdoc import *"
29+
]
30+
},
31+
{
32+
"cell_type": "code",
33+
"execution_count": null,
34+
"metadata": {},
35+
"outputs": [],
36+
"source": []
37+
}
38+
],
39+
"metadata": {
40+
"kernelspec": {
41+
"display_name": "Python 3",
42+
"language": "python",
43+
"name": "python3"
44+
}
45+
},
46+
"nbformat": 4,
47+
"nbformat_minor": 2
48+
}
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"metadata": {},
7+
"outputs": [],
8+
"source": [
9+
"#hide"
10+
]
11+
},
12+
{
13+
"cell_type": "markdown",
14+
"metadata": {},
15+
"source": [
16+
"# Project name here\n",
17+
"\n",
18+
"> Summary description here."
19+
]
20+
},
21+
{
22+
"cell_type": "markdown",
23+
"metadata": {},
24+
"source": [
25+
"This file will become your README and also the index of your documentation."
26+
]
27+
},
28+
{
29+
"cell_type": "markdown",
30+
"metadata": {},
31+
"source": [
32+
"## Install"
33+
]
34+
},
35+
{
36+
"cell_type": "markdown",
37+
"metadata": {},
38+
"source": [
39+
"`pip install your_project_name`"
40+
]
41+
},
42+
{
43+
"cell_type": "markdown",
44+
"metadata": {},
45+
"source": [
46+
"## How to use"
47+
]
48+
},
49+
{
50+
"cell_type": "markdown",
51+
"metadata": {},
52+
"source": [
53+
"Fill me in please! Don't forget code examples:"
54+
]
55+
},
56+
{
57+
"cell_type": "code",
58+
"execution_count": null,
59+
"metadata": {},
60+
"outputs": [
61+
{
62+
"data": {
63+
"text/plain": [
64+
"2"
65+
]
66+
},
67+
"execution_count": null,
68+
"metadata": {},
69+
"output_type": "execute_result"
70+
}
71+
],
72+
"source": [
73+
"1+1"
74+
]
75+
},
76+
{
77+
"cell_type": "code",
78+
"execution_count": null,
79+
"metadata": {},
80+
"outputs": [],
81+
"source": []
82+
}
83+
],
84+
"metadata": {
85+
"kernelspec": {
86+
"display_name": "Python 3",
87+
"language": "python",
88+
"name": "python3"
89+
}
90+
},
91+
"nbformat": 4,
92+
"nbformat_minor": 2
93+
}

Makefile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.ONESHELL:
2+
SHELL := /bin/bash
3+
SRC = $(wildcard ./*.ipynb)
4+
5+
all: ThinkPython2 docs
6+
7+
ThinkPython2: $(SRC)
8+
nbdev_build_lib
9+
touch ThinkPython2
10+
11+
sync:
12+
nbdev_update_lib
13+
14+
docs_serve: docs
15+
cd docs && bundle exec jekyll serve
16+
17+
docs: $(SRC)
18+
nbdev_build_docs
19+
touch docs
20+
21+
test:
22+
nbdev_test_nbs
23+
24+
release: pypi conda_release
25+
nbdev_bump_version
26+
27+
conda_release:
28+
fastrelease_conda_package
29+
30+
pypi: dist
31+
twine upload --repository pypi dist/*
32+
33+
dist: clean
34+
python setup.py sdist bdist_wheel
35+
36+
clean:
37+
rm -rf dist

README.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
1-
ThinkPython
2-
===========
1+
# Project name here
2+
> Summary description here.
33
4-
LaTeX source, code examples, and exercise solutions for Think Python, 2nd edition, by Allen Downey.
54

6-
You can download this book in PDF from [Green Tea Press](http://greenteapress.com/wp/think-python-2e/) or buy it in paper and other formats from [O'Reilly Media](http://shop.oreilly.com/product/0636920045267.do).
5+
This file will become your README and also the index of your documentation.
76

8-
To build the book from source you will need a LaTeX installion. I recommend the TeX Live distribution with the following packages:
7+
## Install
8+
9+
`pip install your_project_name`
10+
11+
## How to use
12+
13+
Fill me in please! Don't forget code examples:
14+
15+
```python
16+
1+1
17+
```
18+
19+
20+
21+
22+
2
923

10-
* texlive-latex-base
11-
* texlive-latex-extra
12-
* texlive-fonts-recommended
1324

ThinkPython2/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = "0.0.1"

ThinkPython2/_nbdev.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# AUTOGENERATED BY NBDEV! DO NOT EDIT!
2+
3+
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
4+
5+
index = {}
6+
7+
modules = []
8+
9+
doc_url = "https://hamelsmu.github.io/ThinkPython2/"
10+
11+
git_url = "https://github.com/hamelsmu/ThinkPython2/tree/master/"
12+
13+
def custom_doc_links(name): return None

ThinkPython2/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# AUTOGENERATED! DO NOT EDIT! File to edit: 00_core.ipynb (unless otherwise specified).
2+
3+
__all__ = []

docs/_config.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
repository: hamelsmu/ThinkPython2
2+
output: web
3+
topnav_title: ThinkPython2
4+
site_title: ThinkPython2
5+
company_name: hamelsmu
6+
description: A python library
7+
# Set to false to disable KaTeX math
8+
use_math: true
9+
# Add Google analytics id if you have one and want to use it here
10+
google_analytics:
11+
# See http://nbdev.fast.ai/search for help with adding Search
12+
google_search:
13+
14+
host: 127.0.0.1
15+
# the preview server used. Leave as is.
16+
port: 4000
17+
# the port where the preview is rendered.
18+
19+
exclude:
20+
- .idea/
21+
- .gitignore
22+
- vendor
23+
24+
exclude: [vendor]
25+
26+
highlighter: rouge
27+
markdown: kramdown
28+
kramdown:
29+
input: GFM
30+
auto_ids: true
31+
hard_wrap: false
32+
syntax_highlighter: rouge
33+
34+
collections:
35+
tooltips:
36+
output: false
37+
38+
defaults:
39+
-
40+
scope:
41+
path: ""
42+
type: "pages"
43+
values:
44+
layout: "page"
45+
comments: true
46+
search: true
47+
sidebar: home_sidebar
48+
topnav: topnav
49+
-
50+
scope:
51+
path: ""
52+
type: "tooltips"
53+
values:
54+
layout: "page"
55+
comments: true
56+
search: true
57+
tooltip: true
58+
59+
sidebars:
60+
- home_sidebar
61+
62+
theme: jekyll-theme-cayman
63+
baseurl: /ThinkPython2/

docs/_data/sidebars/home_sidebar.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,12 @@ entries:
77
- folders:
88
- folderitems:
99
- output: web,pdf
10-
title: Export to modules
11-
url: /export.html
10+
title: Overview
11+
url: /
1212
- output: web,pdf
13-
title: Convert to html
14-
url: /export2html.html
15-
- output: web,pdf
16-
title: Show doc
17-
url: /showdoc.html
18-
- output: web,pdf
19-
title: Test functions
20-
url: /test.html
21-
- output: web,pdf
22-
title: Core functions
23-
url: /core.html
24-
- output: web,pdf
25-
title: Command line functions
26-
url: /cli.html
13+
title: module name here
14+
url: core.html
2715
output: web
28-
title: Notebook
16+
title: ThinkPython2
2917
output: web
3018
title: Sidebar

docs/_data/topnav.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
topnav:
2+
- title: Topnav
3+
items:
4+
- title: github
5+
external_url: https://github.com/hamelsmu/ThinkPython2/tree/master/
6+
7+
#Topnav dropdowns
8+
topnav_dropdowns:
9+
- title: Topnav dropdowns
10+
folders:

0 commit comments

Comments
 (0)