Chapter 44
Appendix: Jupyter Notebook 101
NotebookPython 326 cells
In [ ]python · cell 1
python
#hide
! [ -e /content ] && pip install -Uqq fastbook
import fastbook
fastbook.setup_book()In [ ]python · cell 2
python
from fastbook import *Appendix: Jupyter Notebook 101
Introduction
In [ ]python · cell 5
python
1+1Writing
In [ ]python · cell 7
python
3/2Modes
Other Important Considerations
Markdown Formatting
Italics, Bold, Strikethrough, Inline, Blockquotes and Links
Headings
Lists
Code Capabilities
In [ ]python · cell 15
python
# Import necessary libraries
from fastai.vision.all import *
import matplotlib.pyplot as pltIn [ ]python · cell 16
python
from PIL import ImageIn [ ]python · cell 17
python
a = 1
b = a + 1
c = b + a + 1
d = c + b + a + 1
a, b, c ,dIn [ ]python · cell 18
python
plt.plot([a,b,c,d])
plt.show()In [ ]python · cell 19
python
Image.open(image_cat())Running the App Locally
Creating a Notebook
Shortcuts and Tricks
Command Mode Shortcuts
Cell Tricks
Line Magics
In [ ]python · cell 26
python
%timeit [i+1 for i in range(1000)]