{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**To begin this interactive lesson, click on the rocket ship in the top navigation and then select \"Binder\" to launch the Jupyter Notebook. It may take a few moments to load the first time you launch it.**\n",
"\n",
"
\n",
"\n",
"\n",
"**When you are in the interactive environment, you will see a Jupyter logo in the upper left-hand corner.**\n",
"\n",
"
\n",
"\n",
"___ \n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Welcome to your first Jupyter notebook!\n",
"You are currently looking at a document in an online tool called [Jupyter Notebooks](https://constellate.org/docs/key-terms/#the-jupyter-notebook).\n",
"\n",
"This document is called a \"notebook\" and contains blocks of text, images, and code that you can interact with.\n",
"\n",
"Any time you open a notebook, you will be working on your own temporary copy that you can edit without affecting the original or anyone else's work. So please feel free to press buttons and edit and delete things without fear. You can always close and re-open this document if you need to start over.\n",
"\n",
"## Why are we using Jupyter Notebooks?\n",
"There are two reasons we are using notebooks for this workshop:\n",
"1. **They allow you to write code immediately.**
A notebook is like a virtual computer that is ready for you to write and run code in immediately. This means you can start coding without having to install the programming language (in our case Python) or a program to write the language in (an \"Integrated Development Environment\" or \"IDE\" such as Visual Studio) on your own computer.\n",
"
\n",
"2. **They look prettier than raw code.**
Jupyter Notebooks combine text, images, and code so that the document you are working in looks more like a website than raw code. This makes the code easier to annotate and to follow and learn from. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## What am I looking at?\n",
"There are two parts to a notebook:\n",
"1. Document controls\n",
"1. Document content, which is made up of components called \"cells\"\n",
"\n",
""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## What are cells?\n",
"Similar to the way a word document is composed of paragraphs, Jupyter notebooks are composed of [cells](https://docs.tdm-pilot.org/key-terms/#cell) that contain different kinds of content. There are two types of cells:\n",
"\n",
"1. [Markdown Cells](https://docs.tdm-pilot.org/key-terms/#markdown-cell) — Contain text and images.\n",
"2. [Code Cells](https://docs.tdm-pilot.org/key-terms/#code-cell) — Contain code that you can run.\n",
"\n",
"\n",
"The text you are reading right now is in a Markdown cell. If you were to edit it, you would see that it is written in \"Markdown,\" a shorthand writing system that allows you to format text to look like a website without having to write HTML. Here is an example of some Markdown and its output: \n",
"
Markdown | \n", "\n", " | Output | \n", "
# This makes a header\n",
" | \n",
" \n", " | \n",
" This makes a header \n", " This makes regular text.\n", "
| \n",
"