Skip to content
This repository was archived by the owner on Mar 8, 2021. It is now read-only.

Commit 759d4ce

Browse files
committed
update licence
1 parent 0be77d9 commit 759d4ce

8 files changed

+207
-607
lines changed

answerbook/Chapter 1 - Getting started.ipynb

Lines changed: 32 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"metadata": {
3-
"name": "Chapter 1 - Getting started"
3+
"name": "",
4+
"signature": "sha256:83a720ca76130164ef12d70452a1b7ce77902a0227df77bb8b63536c2ac7f711"
45
},
56
"nbformat": 3,
67
"nbformat_minor": 0,
@@ -2114,7 +2115,7 @@
21142115
"input": [
21152116
"from IPython.core.display import HTML\n",
21162117
"def css_styling():\n",
2117-
" styles = open(\"styles/custom.css\", \"r\").read()\n",
2118+
" styles = open(\"../styles/custom.css\", \"r\").read()\n",
21182119
" return HTML(styles)\n",
21192120
"css_styling()"
21202121
],
@@ -2123,53 +2124,42 @@
21232124
"outputs": [
21242125
{
21252126
"html": [
2127+
"/*\n",
2128+
"Placeholder for custom user CSS\n",
2129+
"\n",
2130+
"mainly to be overridden in profile/static/custom/custom.css\n",
2131+
"\n",
2132+
"This will always be an empty file in IPython\n",
2133+
"*/\n",
21262134
"<style>\n",
2127-
" @font-face {\n",
2128-
" font-family: \"Computer Modern\";\n",
2129-
" src: url('http://mirrors.ctan.org/fonts/cm-unicode/fonts/otf/cmunss.otf');\n",
2130-
" }\n",
2131-
" div.cell {\n",
2135+
" @import url(http://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,700,700italic);\n",
2136+
"\n",
2137+
" div.cell{\n",
2138+
" font-family:'roboto','helvetica','sans';\n",
2139+
" color:#444;\n",
21322140
" width:800px;\n",
2133-
" margin-left:auto;\n",
2141+
" margin-left:16% !important;\n",
21342142
" margin-right:auto;\n",
21352143
" }\n",
2136-
" div.cell, .input.hbox {\n",
2137-
" display:block;\n",
2138-
"}\n",
2139-
" h1 {\n",
2140-
" font-family: \"Charis SIL\", Palatino, serif;\n",
2141-
" }\n",
2142-
" h4{\n",
2143-
" margin-top:12px;\n",
2144-
" margin-bottom: 3px;\n",
2145-
" }\n",
2144+
"\n",
21462145
" div.text_cell_render{\n",
2147-
" font-family: Computer Modern, \"Helvetica Neue\", Arial, Helvetica, Geneva, sans-serif;\n",
2146+
" font-family: 'roboto','helvetica','sans';\n",
21482147
" line-height: 145%;\n",
21492148
" font-size: 120%;\n",
2149+
" color:#444;\n",
21502150
" width:800px;\n",
21512151
" margin-left:auto;\n",
21522152
" margin-right:auto;\n",
21532153
" }\n",
21542154
" .CodeMirror{\n",
2155-
" font-family: \"Source Code Pro\", source-code-pro,Consolas, monospace;\n",
2155+
" font-family: \"Menlo\", source-code-pro,Consolas, monospace;\n",
21562156
" }\n",
21572157
" .prompt{\n",
21582158
" display: None;\n",
2159-
" }\n",
2160-
" .text_cell_render h5 {\n",
2161-
" font-weight: 300;\n",
2162-
" font-size: 16pt;\n",
2163-
" color: #4057A1;\n",
2164-
" font-style: italic;\n",
2165-
" margin-bottom: .5em;\n",
2166-
" margin-top: 0.5em;\n",
2167-
" display: block;\n",
2168-
" }\n",
2169-
" \n",
2159+
" } \n",
21702160
" .warning{\n",
21712161
" color: rgb( 240, 20, 20 )\n",
2172-
" }\n",
2162+
" } \n",
21732163
"</style>\n",
21742164
"<script>\n",
21752165
" MathJax.Hub.Config({\n",
@@ -2187,10 +2177,11 @@
21872177
" });\n",
21882178
"</script>"
21892179
],
2180+
"metadata": {},
21902181
"output_type": "pyout",
21912182
"prompt_number": 1,
21922183
"text": [
2193-
"<IPython.core.display.HTML at 0x2dfa150>"
2184+
"<IPython.core.display.HTML at 0x102c9a128>"
21942185
]
21952186
}
21962187
],
@@ -2200,9 +2191,14 @@
22002191
"cell_type": "markdown",
22012192
"metadata": {},
22022193
"source": [
2203-
"by Folgert Karsdorp (Meertens Instituut) en Maarten van Gompel (Radboud University Nijmegen)\n",
2204-
"\n",
2205-
"Licensed under the [GNU Free Documentation License](http://www.gnu.org/copyleft/fdl.html)"
2194+
"---"
2195+
]
2196+
},
2197+
{
2198+
"cell_type": "markdown",
2199+
"metadata": {},
2200+
"source": [
2201+
"<p><small><a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-sa/4.0/88x31.png\" /></a><br /><span xmlns:dct=\"http://purl.org/dc/terms/\" property=\"dct:title\">Python Programming for the Humanities</span> by <a xmlns:cc=\"http://creativecommons.org/ns#\" href=\"http://fbkarsdorp.github.io/python-course\" property=\"cc:attributionName\" rel=\"cc:attributionURL\">http://fbkarsdorp.github.io/python-course</a> is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\">Creative Commons Attribution-ShareAlike 4.0 International License</a>. Based on a work at <a xmlns:dct=\"http://purl.org/dc/terms/\" href=\"https://github.com/fbkarsdorp/python-course\" rel=\"dct:source\">https://github.com/fbkarsdorp/python-course</a>.</small></p>"
22062202
]
22072203
}
22082204
],

answerbook/Chapter 10 - Learning without Supervision.ipynb

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metadata": {
33
"name": "",
4-
"signature": "sha256:9c31d4909f7a04f8442b78603fe80db9775dbb99884012c0b4bf1550b28c3296"
4+
"signature": "sha256:cb1d0cef2ba6618be722e0866efc15bfea54ff879c8273b9a3c38cb1e568ccff"
55
},
66
"nbformat": 3,
77
"nbformat_minor": 0,
@@ -1057,9 +1057,14 @@
10571057
"cell_type": "markdown",
10581058
"metadata": {},
10591059
"source": [
1060-
"by Folgert Karsdorp (Meertens Instituut)\n",
1061-
"\n",
1062-
"Licensed under the [GNU Free Documentation License](http://www.gnu.org/copyleft/fdl.html)"
1060+
"---"
1061+
]
1062+
},
1063+
{
1064+
"cell_type": "markdown",
1065+
"metadata": {},
1066+
"source": [
1067+
"<p><small><a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-sa/4.0/88x31.png\" /></a><br /><span xmlns:dct=\"http://purl.org/dc/terms/\" property=\"dct:title\">Python Programming for the Humanities</span> by <a xmlns:cc=\"http://creativecommons.org/ns#\" href=\"http://fbkarsdorp.github.io/python-course\" property=\"cc:attributionName\" rel=\"cc:attributionURL\">http://fbkarsdorp.github.io/python-course</a> is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\">Creative Commons Attribution-ShareAlike 4.0 International License</a>. Based on a work at <a xmlns:dct=\"http://purl.org/dc/terms/\" href=\"https://github.com/fbkarsdorp/python-course\" rel=\"dct:source\">https://github.com/fbkarsdorp/python-course</a>.</small></p>"
10631068
]
10641069
}
10651070
],

answerbook/Chapter 2 - First steps.ipynb

Lines changed: 33 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"metadata": {
3-
"name": ""
3+
"name": "",
4+
"signature": "sha256:8ea5368a63018a66678eae50169460d1bb53fe34e454951c3dbcdfc940436e5b"
45
},
56
"nbformat": 3,
67
"nbformat_minor": 0,
@@ -1719,7 +1720,7 @@
17191720
"input": [
17201721
"from IPython.core.display import HTML\n",
17211722
"def css_styling():\n",
1722-
" styles = open(\"styles/custom.css\", \"r\").read()\n",
1723+
" styles = open(\"../styles/custom.css\", \"r\").read()\n",
17231724
" return HTML(styles)\n",
17241725
"css_styling()"
17251726
],
@@ -1728,53 +1729,42 @@
17281729
"outputs": [
17291730
{
17301731
"html": [
1732+
"/*\n",
1733+
"Placeholder for custom user CSS\n",
1734+
"\n",
1735+
"mainly to be overridden in profile/static/custom/custom.css\n",
1736+
"\n",
1737+
"This will always be an empty file in IPython\n",
1738+
"*/\n",
17311739
"<style>\n",
1732-
" @font-face {\n",
1733-
" font-family: \"Computer Modern\";\n",
1734-
" src: url('http://mirrors.ctan.org/fonts/cm-unicode/fonts/otf/cmunss.otf');\n",
1735-
" }\n",
1736-
" div.cell {\n",
1740+
" @import url(http://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic,700,700italic);\n",
1741+
"\n",
1742+
" div.cell{\n",
1743+
" font-family:'roboto','helvetica','sans';\n",
1744+
" color:#444;\n",
17371745
" width:800px;\n",
1738-
" margin-left:auto;\n",
1746+
" margin-left:16% !important;\n",
17391747
" margin-right:auto;\n",
17401748
" }\n",
1741-
" div.cell, .input.hbox {\n",
1742-
" display:block;\n",
1743-
"}\n",
1744-
" h1 {\n",
1745-
" font-family: \"Charis SIL\", Palatino, serif;\n",
1746-
" }\n",
1747-
" h4{\n",
1748-
" margin-top:12px;\n",
1749-
" margin-bottom: 3px;\n",
1750-
" }\n",
1749+
"\n",
17511750
" div.text_cell_render{\n",
1752-
" font-family: Computer Modern, \"Helvetica Neue\", Arial, Helvetica, Geneva, sans-serif;\n",
1751+
" font-family: 'roboto','helvetica','sans';\n",
17531752
" line-height: 145%;\n",
17541753
" font-size: 120%;\n",
1754+
" color:#444;\n",
17551755
" width:800px;\n",
17561756
" margin-left:auto;\n",
17571757
" margin-right:auto;\n",
17581758
" }\n",
17591759
" .CodeMirror{\n",
1760-
" font-family: \"Source Code Pro\", source-code-pro,Consolas, monospace;\n",
1760+
" font-family: \"Menlo\", source-code-pro,Consolas, monospace;\n",
17611761
" }\n",
17621762
" .prompt{\n",
17631763
" display: None;\n",
1764-
" }\n",
1765-
" .text_cell_render h5 {\n",
1766-
" font-weight: 300;\n",
1767-
" font-size: 16pt;\n",
1768-
" color: #4057A1;\n",
1769-
" font-style: italic;\n",
1770-
" margin-bottom: .5em;\n",
1771-
" margin-top: 0.5em;\n",
1772-
" display: block;\n",
1773-
" }\n",
1774-
" \n",
1764+
" } \n",
17751765
" .warning{\n",
17761766
" color: rgb( 240, 20, 20 )\n",
1777-
" }\n",
1767+
" } \n",
17781768
"</style>\n",
17791769
"<script>\n",
17801770
" MathJax.Hub.Config({\n",
@@ -1794,21 +1784,26 @@
17941784
],
17951785
"metadata": {},
17961786
"output_type": "pyout",
1797-
"prompt_number": 124,
1787+
"prompt_number": 1,
17981788
"text": [
1799-
"<IPython.core.display.HTML at 0x109425c50>"
1789+
"<IPython.core.display.HTML at 0x103698080>"
18001790
]
18011791
}
18021792
],
1803-
"prompt_number": 124
1793+
"prompt_number": 1
18041794
},
18051795
{
18061796
"cell_type": "markdown",
18071797
"metadata": {},
18081798
"source": [
1809-
"by Folgert Karsdorp (Meertens Instituut) en Maarten van Gompel (Radboud University Nijmegen)\n",
1810-
"\n",
1811-
"Licensed under the [GNU Free Documentation License](http://www.gnu.org/copyleft/fdl.html)"
1799+
"---"
1800+
]
1801+
},
1802+
{
1803+
"cell_type": "markdown",
1804+
"metadata": {},
1805+
"source": [
1806+
"<p><small><a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-sa/4.0/88x31.png\" /></a><br /><span xmlns:dct=\"http://purl.org/dc/terms/\" property=\"dct:title\">Python Programming for the Humanities</span> by <a xmlns:cc=\"http://creativecommons.org/ns#\" href=\"http://fbkarsdorp.github.io/python-course\" property=\"cc:attributionName\" rel=\"cc:attributionURL\">http://fbkarsdorp.github.io/python-course</a> is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/4.0/\">Creative Commons Attribution-ShareAlike 4.0 International License</a>. Based on a work at <a xmlns:dct=\"http://purl.org/dc/terms/\" href=\"https://github.com/fbkarsdorp/python-course\" rel=\"dct:source\">https://github.com/fbkarsdorp/python-course</a>.</small></p>"
18121807
]
18131808
}
18141809
],

0 commit comments

Comments
 (0)