{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# The jupyter ecosystem & notebooks\n",
"\n",
"[Peer Herholz (he/him)](https://peerherholz.github.io/) \n",
"Research affiliate - [NeuroDataScience lab](https://neurodatascience.github.io/) at [MNI](https://www.mcgill.ca/neuro/)/[McGill](https://www.mcgill.ca/) \n",
"Member - [BIDS](https://bids-specification.readthedocs.io/en/stable/), [ReproNim](https://www.repronim.org/), [Brainhack](https://brainhack.org/), [Neuromod](https://www.cneuromod.ca/), [OHBM SEA-SIG](https://ohbm-environment.org/), [UNIQUE](https://sites.google.com/view/unique-neuro-ai) \n",
"\n",
" @peerherholz \n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Before we get started 1...\n",
"
\n",
"\n",
"- most of what you’ll see within this lecture was prepared by Ross Markello, Michael Notter and Peer Herholz and further adapted by Peer Herholz \n",
"- based on Tal Yarkoni's [\"Introduction to Python\" lecture at Neurohackademy 2019](https://neurohackademy.org/course/introduction-to-python-2/)\n",
"- based on [IPython notebooks from J. R. Johansson](http://github.com/jrjohansson/scientific-python-lectures)\n",
"- based on http://www.stavros.io/tutorials/python/ & http://www.swaroopch.com/notes/python\n",
"- based on https://github.com/oesteban/biss2016 & https://github.com/jvns/pandas-cookbook\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Objectives 📍\n",
"\n",
"* get to know important differences between `GUI`s & `CLI`s\n",
"* learn basic and efficient usage of the `jupyter ecosystem` & `notebooks`\n",
" * what is `Jupyter` & how to utilize `jupyter notebooks`"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## GUI vs. CLI - interacting with machines\n",
"\n",
"### You and your computer\n",
"\n",
" "
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"### A little example\n",
"\n",
"
\n", "# Heading 1\n", "\n", "# Heading 2\n", "\n", "## Heading 2.1\n", "\n", "## Heading 2.2\n", "" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "### Embedded code\n", "\n", "You can embed code meant for illustration instead of execution in Python:\n", "\n", " def f(x):\n", " \"\"\"a docstring\"\"\"\n", " return x**2\n", "\n", "or other languages:\n", "\n", " if (i=0; i
\n", "| This | is |\n", "|------|------|\n", "| a | table| \n", "\n", "\n", "A nice HTML Table\n", "\n", "| This | is |\n", "|------|------|\n", "| a | table| " ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "### General HTML\n", "\n", "Because `Markdown` is a `superset of HTML` you can even add things like `HTML tables`:\n", "\n", "
Header 1 | \n", "Header 2 | \n", "
---|---|
row 1, cell 1 | \n", "row 1, cell 2 | \n", "
row 2, cell 1 | \n", "row 2, cell 2 | \n", "