Skip to content

Commit 7d53bb8

Browse files
authored
Merge pull request #1289 from muellerzr/extensions-tutorial
Slight nit on the tutorial code
2 parents 423ef63 + 2f2f851 commit 7d53bb8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

nbs/tutorials/extensions.ipynb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@
141141
"metadata": {},
142142
"outputs": [],
143143
"source": [
144-
"#| exports\n",
145144
"from nbdev.process import extract_directives\n",
146145
"from nbdev.processors import Processor\n",
147146
"\n",
@@ -316,7 +315,7 @@
316315
"outputs": [],
317316
"source": [
318317
"cell = mk_cell(\n",
319-
" \"\"\"#| div .margin-column\n",
318+
" \"\"\"#| div margin-column\n",
320319
"Here is something for the sidebar!\"\"\",\n",
321320
" cell_type=\"markdown\"\n",
322321
")"
@@ -339,7 +338,7 @@
339338
{
340339
"data": {
341340
"text/plain": [
342-
"{'div': ['.margin-column']}"
341+
"{'div': ['margin-column']}"
343342
]
344343
},
345344
"execution_count": null,
@@ -370,7 +369,7 @@
370369
"name": "stdout",
371370
"output_type": "stream",
372371
"text": [
373-
"::: {..margin-column}\n",
372+
"::: {.margin-column}\n",
374373
"Here is something for the sidebar!\n",
375374
":::\n"
376375
]
@@ -563,7 +562,6 @@
563562
}
564563
],
565564
"source": [
566-
"#| hide\n",
567565
"for i in range(3):\n",
568566
" print(f\"Before:\\n{nb['cells'][i].source}\\n\")\n",
569567
" print(f\"After:\\n{processor.nb.cells[i].source}\\n\")"
@@ -641,7 +639,7 @@
641639
],
642640
"metadata": {
643641
"kernelspec": {
644-
"display_name": "Python 3",
642+
"display_name": "Python 3 (ipykernel)",
645643
"language": "python",
646644
"name": "python3"
647645
}

0 commit comments

Comments
 (0)