|
17 | 17 | "metadata": {}, |
18 | 18 | "outputs": [], |
19 | 19 | "source": [ |
20 | | - "import sys\n", |
21 | 20 | "!{sys.executable} -m pip install pythonbible" |
22 | 21 | ] |
23 | 22 | }, |
|
115 | 114 | "outputs": [], |
116 | 115 | "source": [ |
117 | 116 | "bible.get_references(\n", |
118 | | - " \"What are all of the books of the Old Testament?\",\n", |
119 | | - " book_groups=bible.BOOK_GROUPS\n", |
| 117 | + " \"What are all of the books of the Old Testament?\", book_groups=bible.BOOK_GROUPS\n", |
120 | 118 | ")" |
121 | 119 | ] |
122 | 120 | }, |
|
138 | 136 | "outputs": [], |
139 | 137 | "source": [ |
140 | 138 | "references = bible.get_references(\n", |
141 | | - " \"What are all of the books of the Old Testament?\",\n", |
142 | | - " book_groups=bible.BOOK_GROUPS\n", |
| 139 | + " \"What are all of the books of the Old Testament?\", book_groups=bible.BOOK_GROUPS\n", |
143 | 140 | ")\n", |
144 | 141 | "bible.format_scripture_references(references)" |
145 | 142 | ] |
|
159 | 156 | "metadata": {}, |
160 | 157 | "outputs": [], |
161 | 158 | "source": [ |
162 | | - "bible.format_scripture_references(\n", |
163 | | - " references,\n", |
164 | | - " always_include_chapter_numbers=True\n", |
165 | | - ")" |
| 159 | + "bible.format_scripture_references(references, always_include_chapter_numbers=True)" |
166 | 160 | ] |
167 | 161 | }, |
168 | 162 | { |
|
191 | 185 | "source": [ |
192 | 186 | "bible.get_references(\n", |
193 | 187 | " \"I want to find the Old Testament books, not the Gospels.\",\n", |
194 | | - " book_groups=bible.BOOK_GROUPS\n", |
| 188 | + " book_groups=bible.BOOK_GROUPS,\n", |
195 | 189 | ")" |
196 | 190 | ] |
197 | 191 | }, |
|
216 | 210 | "}\n", |
217 | 211 | "bible.get_references(\n", |
218 | 212 | " \"I want to find the Old Testament books, not the Gospels.\",\n", |
219 | | - " book_groups=book_groups_subset\n", |
| 213 | + " book_groups=book_groups_subset,\n", |
220 | 214 | ")" |
221 | 215 | ] |
222 | 216 | }, |
|
238 | 232 | "outputs": [], |
239 | 233 | "source": [ |
240 | 234 | "custom_book_groups = {\n", |
241 | | - " \"my favorite books\": [bible.Book.PSALMS, bible.Book.PROVERBS, bible.Book.JOHN, bible.Book.PHILIPPIANS, bible.Book.JAMES],\n", |
| 235 | + " \"my favorite books\": [\n", |
| 236 | + " bible.Book.PSALMS,\n", |
| 237 | + " bible.Book.PROVERBS,\n", |
| 238 | + " bible.Book.JOHN,\n", |
| 239 | + " bible.Book.PHILIPPIANS,\n", |
| 240 | + " bible.Book.JAMES,\n", |
| 241 | + " ],\n", |
242 | 242 | "}\n", |
243 | 243 | "references = bible.get_references(\n", |
244 | | - " \"What are my favorite books of the Bible?\",\n", |
245 | | - " book_groups=custom_book_groups\n", |
| 244 | + " \"What are my favorite books of the Bible?\", book_groups=custom_book_groups\n", |
246 | 245 | ")\n", |
247 | 246 | "\n", |
248 | | - "print(f\"My favorite books of the Bible are {bible.format_scripture_references(references)}!\")" |
| 247 | + "print(\n", |
| 248 | + " f\"My favorite books of the Bible are {bible.format_scripture_references(references)}!\"\n", |
| 249 | + ")" |
249 | 250 | ] |
250 | 251 | } |
251 | 252 | ], |
|
0 commit comments