Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jph00 committed Oct 19, 2024
1 parent ea54a78 commit 96b11fd
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions nbs/tutorials/tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@
"\n",
"> say_hello (to)\n",
"\n",
"Say hello to somebody\n",
"*Say hello to somebody*\n",
"\n",
":::\n",
"\n",
Expand Down Expand Up @@ -1130,6 +1130,21 @@
"This will automatically appear in the docs like this:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"class HelloSayer:\n",
" \"Say hello to `to` using `say_hello`\"\n",
" def __init__(self, to): self.to = to\n",
"\n",
" def say(self):\n",
" \"Do the saying\"\n",
" return say_hello(self.to)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -1140,24 +1155,20 @@
"text/markdown": [
"---\n",
"\n",
"[source](https://github.com/fastai/nbdevblob/master/nbdev/tutorial.py#L12){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"\n",
"### HelloSayer\n",
"\n",
"> HelloSayer (to)\n",
"\n",
"Say hello to `to` using `say_hello`"
"*Say hello to `to` using `say_hello`*"
],
"text/plain": [
"---\n",
"\n",
"[source](https://github.com/fastai/nbdevblob/master/nbdev/tutorial.py#L12){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"\n",
"### HelloSayer\n",
"\n",
"> HelloSayer (to)\n",
"\n",
"Say hello to `to` using `say_hello`"
"*Say hello to `to` using `say_hello`*"
]
},
"execution_count": null,
Expand All @@ -1166,14 +1177,6 @@
}
],
"source": [
"class HelloSayer:\n",
" \"Say hello to `to` using `say_hello`\"\n",
" def __init__(self, to): self.to = to\n",
"\n",
" def say(self):\n",
" \"Do the saying\"\n",
" return say_hello(self.to)\n",
"\n",
"show_doc(HelloSayer)"
]
},
Expand Down Expand Up @@ -1205,24 +1208,20 @@
"text/markdown": [
"---\n",
"\n",
"[source](https://github.com/fastai/nbdevblob/master/nbdev/tutorial.py#LNone){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"\n",
"### HelloSayer.say\n",
"\n",
"> HelloSayer.say ()\n",
"\n",
"Do the saying"
"*Do the saying*"
],
"text/plain": [
"---\n",
"\n",
"[source](https://github.com/fastai/nbdevblob/master/nbdev/tutorial.py#LNone){target=\"_blank\" style=\"float:right; font-size:smaller\"}\n",
"\n",
"### HelloSayer.say\n",
"\n",
"> HelloSayer.say ()\n",
"\n",
"Do the saying"
"*Do the saying*"
]
},
"execution_count": null,
Expand Down

0 comments on commit 96b11fd

Please sign in to comment.