Summary
Summary
In this chapter, you learned about Jupyter Notebooks.
You learned that using Jupyter Notebooks is one way to write and run Python code. Jupyter Notebooks are divided into cells. There are three main types of cells: code cells, output cells, and markdown cells. Jupyter notebooks include Python code in code cells, the results of running Python code in output cells, and rich text descriptions in markdown cells.
Jupyter Notebooks come pre-installed with the Anaconda distribution of Python. Jupyter notebooks can also be installed at the Anaconda prompt or installed with pip. Jupyter notebooks can be opened from the Windows Start Menu, the Anaconda Prompt and Anaconda Navigator.
You learned about the Jupyter Notebook interface and how to select between code cells and markdown cells. Special formatting can be included in markdown cells to make rich text output.
Jupyter Notebook magic commands run special functions. Magic cells can load and run Python code, add inline plots, and give information about the file structure.
The last section of the chapter detailed how to get help when you use using Jupyter Notebooks. The dir()
and help()
functions are two ways to get help. In Jupyter Notebooks, you can also get help by including a question mark ?
after a function or method name.
Key Terms and Concepts
kernal
notebook
Jupyter
iPython
execute
.ipynb file
.py file
markdown
code cell
markdown cell
output cell
syntax
web browser
run
download
Jupyter Notebook Download File Formats
File Format | extension | description | file type |
---|---|---|---|
Jupyter Notebook | .ipynb |
Jupyter notebook native file type | json |
Python | .py |
Python native file format | plain text |
HTML | .html |
web browser format | plain text |
Reveal js slides | .html |
Reveal js slide presentation type | plain text |
Markdown | .md |
markdown text format | plain text |
reST | .rst |
restructured text format | plain text |
LaTeX | .tex |
LaTeX document format | plain text |
PDF via LaTeX | .pdf |
Adobe PDF format | binary file |
### Additional Resources | |||
Jupyter Notebooks official documentation: |
Reference for Jupyter notebook markdown cell syntax on the Project Jupyter docs:
Jupyter Notebook 101 by Mike Driscoll. A book about Jupyter notebooks.
A gallery of "awesome" Jupyter notebooks on GitHub: