Skip to content

Commit bb118dd

Browse files
committed
links
1 parent 9443cf3 commit bb118dd

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,19 @@ With conda:
4848
Note that `nbdev` must be installed into the same Python environment
4949
that you use for both Jupyter and your project.
5050

51-
## Getting started
51+
## How to use nbdev
5252

53-
We suggest these helpful resources to get started with `nbdev`:
53+
The best way to learn to use nbdev is to complete one of these tutorials
54+
(we suggest replicating each step to solidify your understanding):
5455

55-
- [Official tutorial](https://nbdev.fast.ai/tutorial.html); (we
56-
suggest replicating each step to solidify your understanding)
57-
- [Official
58-
documentation](https://nbdev.fast.ai/getting_started.html).
56+
- [Written tutorial](https://nbdev.fast.ai/tutorial.html)
57+
58+
**Video step-by-step walkthru** (to view full screen, click the little
59+
square in the bottom right of the video; to view in a separate Youtube
60+
window, click the Youtube logo):
61+
62+
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/l7zS8Ld4_iA" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
63+
</iframe>
5964

6065
You can run `nbdev_help` from the terminal to see the full list of
6166
available commands:

nbs/index.ipynb

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
" if meta: meta = \"{\" + meta + \"}\"\n",
3030
" return md + meta\n",
3131
"\n",
32-
"def img(fname, style=\"\", height=None, relative=None):\n",
32+
"def img(fname, style=\"\", height=None, relative=None, link=False):\n",
3333
" meta = \"\"\n",
3434
" if height:\n",
3535
" if meta: meta += \" \"\n",
@@ -41,7 +41,9 @@
4141
" if style:\n",
4242
" if meta: meta += \" \"\n",
4343
" meta += f'style=\"{style}\"'\n",
44-
" return add_meta(f'![](images/{fname})', meta)\n",
44+
" res = f'![](images/{fname})'\n",
45+
" if link: res = f'[{res}](images/{fname})'\n",
46+
" return add_meta(res, meta)\n",
4547
"\n",
4648
"def btn(txt, link):\n",
4749
" meta = '.btn-action-primary .btn-action .btn .btn-success .btn-lg role=\"button\"'\n",
@@ -70,7 +72,7 @@
7072
"\n",
7173
"[Get started](getting_started.ipynb){.btn-action-primary .btn-action .btn .btn-success .btn-lg role=\"button\"}\n",
7274
"\n",
73-
"![](images/card.png){style=\"margin-top: 40px; margin-bottom: 40px\"}\n",
75+
"[![](images/card.png)](images/card.png){style=\"margin-top: 40px; margin-bottom: 40px\"}\n",
7476
"\n",
7577
"\n",
7678
":::\n"
@@ -92,7 +94,7 @@
9294
"\n",
9395
"{btn('Get started', 'getting_started.ipynb')}\n",
9496
"\n",
95-
"{img('card.png', style=\"margin-top: 40px; margin-bottom: 40px\")}\n",
97+
"{img('card.png', style=\"margin-top: 40px; margin-bottom: 40px\", link=True)}\n",
9698
"\"\"\", \".content-block\")"
9799
]
98100
},
@@ -361,7 +363,7 @@
361363
"source": [
362364
"def testm(im, nm, detl, txt):\n",
363365
" return f\"\"\"::: {{.testimonial .g-col-12 .g-col-md-6}}\n",
364-
"{img(im)}\n",
366+
"{img(im, link=True)}\n",
365367
"\n",
366368
"# {nm}\n",
367369
"\n",
@@ -398,7 +400,7 @@
398400
"::: {.content-block .grid .gap-4}\n",
399401
"\n",
400402
"::: {.testimonial .g-col-12 .g-col-md-6}\n",
401-
"![](images/chris-lattner.png)\n",
403+
"[![](images/chris-lattner.png)](images/chris-lattner.png)\n",
402404
"\n",
403405
"# Chris Lattner\n",
404406
"\n",
@@ -408,7 +410,7 @@
408410
":::\n",
409411
"\n",
410412
"::: {.testimonial .g-col-12 .g-col-md-6}\n",
411-
"![](images/fernando-pérez.jpeg)\n",
413+
"[![](images/fernando-pérez.jpeg)](images/fernando-pérez.jpeg)\n",
412414
"\n",
413415
"# Fernando Pérez\n",
414416
"\n",
@@ -418,7 +420,7 @@
418420
":::\n",
419421
"\n",
420422
"::: {.testimonial .g-col-12 .g-col-md-6}\n",
421-
"![](images/david-berg.jpeg)\n",
423+
"[![](images/david-berg.jpeg)](images/david-berg.jpeg)\n",
422424
"\n",
423425
"# David Berg\n",
424426
"\n",
@@ -428,7 +430,7 @@
428430
":::\n",
429431
"\n",
430432
"::: {.testimonial .g-col-12 .g-col-md-6}\n",
431-
"![](images/erik-gaasedelen.jpeg)\n",
433+
"[![](images/erik-gaasedelen.jpeg)](images/erik-gaasedelen.jpeg)\n",
432434
"\n",
433435
"# Erik Gaasedelen\n",
434436
"\n",
@@ -438,7 +440,7 @@
438440
":::\n",
439441
"\n",
440442
"::: {.testimonial .g-col-12 .g-col-md-6}\n",
441-
"![](images/roxanna-pourzand.jpeg)\n",
443+
"[![](images/roxanna-pourzand.jpeg)](images/roxanna-pourzand.jpeg)\n",
442444
"\n",
443445
"# Roxanna Pourzand\n",
444446
"\n",
@@ -448,7 +450,7 @@
448450
":::\n",
449451
"\n",
450452
"::: {.testimonial .g-col-12 .g-col-md-6}\n",
451-
"![](images/hugo-bowne-anderson.jpeg)\n",
453+
"[![](images/hugo-bowne-anderson.jpeg)](images/hugo-bowne-anderson.jpeg)\n",
452454
"\n",
453455
"# Hugo Bowne-Anderson\n",
454456
"\n",
@@ -528,13 +530,6 @@
528530
"Copyright © 2019 onward fast.ai, Inc. All rights reserved.\n",
529531
":::"
530532
]
531-
},
532-
{
533-
"cell_type": "code",
534-
"execution_count": null,
535-
"metadata": {},
536-
"outputs": [],
537-
"source": []
538533
}
539534
],
540535
"metadata": {

0 commit comments

Comments
 (0)