Skip to content

Commit

Permalink
start instructions, change template to W1D2
Browse files Browse the repository at this point in the history
  • Loading branch information
iamzoltan committed Oct 30, 2023
1 parent e0ec692 commit 7b6726b
Show file tree
Hide file tree
Showing 54 changed files with 11,209 additions and 0 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ scipy
matplotlib
scikit-learn
torch
jupyter
ipywidgets
tqdm
pathlib
Expand Down
File renamed without changes.
92 changes: 92 additions & 0 deletions tutorials/W1D1_Instructions/W1D1_Intro.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"colab_type": "text",
"execution": {},
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/neuromatch/course-content-template/blob/main/tutorials/W1D1_Template/W1D1_Intro.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/neuromatch/course-content-template/main/tutorials/W1D1_Template/W1D1_Intro.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {},
"pycharm": {
"name": "#%% md\n"
}
},
"source": [
"# Intro"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {},
"pycharm": {
"name": "#%% md\n"
}
},
"source": [
"## Overview\n",
"\n",
"Welcome to the course content template. The aim of this booklet is to provide you with instructions on how to create buildable course content in the jupyter book format. We will cover everthing you need to know in order to build a book, collaborate with content creators, and host an html version of the book on github pages. Happy creating!\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"## Prerequisite knowledge\n",
"\n",
"Ideally you have some knowledge of:\n",
"\n",
"- git\n",
"- github\n",
"- python\n",
"- github CI/CD\n",
"\n",
"Do not be discouraged if you are missing some of the prerequisites, we will give you a step by step explaination of how to go about building your course."
]
}
],
"metadata": {
"colab": {
"collapsed_sections": [],
"include_colab_link": true,
"name": "W1D1_Intro",
"provenance": [],
"toc_visible": true
},
"kernel": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
File renamed without changes.
204 changes: 204 additions & 0 deletions tutorials/W1D1_Instructions/W1D1_Tutorial1.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"colab_type": "text",
"execution": {},
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/neuromatch/course-content-template/blob/main/tutorials/W1D1_Template/W1D1_Tutorial1.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/neuromatch/course-content-template/main/tutorials/W1D1_Template/W1D1_Tutorial1.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"# Tutorial 1: Importing the Template\n",
"\n",
"**Week 1, Day 1: Instructions**\n",
"\n",
"**By Neuromatch**\n",
"\n",
"__Content creators:__ Konstantine Tsafatinos\n",
"\n",
"__Content reviewers:__ Konstantine Tsafatinos\n",
"\n",
"__Production editors:__ Konstantine Tsafatinos\n",
"\n",
"<br>\n",
"\n",
"Acknowledgments: [Ella Batty, Spiros Chavlis and neuromatch]\n"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"___\n",
"\n",
"Use a line (---) separator from title block to objectives. \n",
"\n",
"# Tutorial Objectives\n",
"\n",
"*Estimated timing of tutorial: [15 mins]*\n",
"\n",
"In this tutorial, you will learn how to import an existing github repository into a new github repository.\n",
"\n",
"\n",
"You should note the this differs from forking a repo. The reasons we are importing the template: \n",
"\n",
"- you get a working copy of all the starter code; it even builds!\n",
"- it is decoupled from the template repo, which is desired as your course content will deviate from this template and at no point would you want to push to the orginal repo and overwrite the template (that would be no bueno)"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"---\n",
"# Setup\n",
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In this section, we have:\n",
"\n",
"1. **New Repository Via Import**: Create a new repository on github import from an existing repo."
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"---\n",
"\n",
"# Section 1: How to create a new repository via importing\n",
"\n",
" "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"How to import:"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"- sign in to github\n",
"- click on create new repo\n",
"\n",
"<p align='center'><img src='https://github.com/neuromatch/course-content-template/blob/main/tutorials/static/import-repo.gif?raw=True' alt='import repo gif'/></p>\n",
"\n",
"TODO: remove relative import!\n",
"\n",
"<p align='center'><img src='../static/import-repo.gif' alt='import repo gif'/></p>"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"## Section 1.1: Import from URL and name the new repository\n",
"\n",
"Next Steps:\n",
"\n",
"- import template\n",
"- name course\n",
"- choose organization\n",
"- make it public\n",
"- wait\n",
"\n",
"<p align='center'><img src='https://github.com/neuromatch/course-content-template/blob/main/tutorials/static/new-course.gif?raw=True' alt='create new course gif'/></p>\n",
"\n",
"TODO: remove relative import!\n",
"\n",
"<p align='center'><img src='../static/new-course.gif' alt='create new course gif'/></p>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"\n",
"# Section 2: Wait for Importing to Complete\n",
"\n",
"You will see this:\n",
"\n",
"<p align='center'><img src='https://github.com/neuromatch/course-content-template/blob/main/tutorials/static/import-complete.png?raw=True' alt='complete import image'/></p>\n",
"\n",
"TODO: remove relative import!\n",
"\n",
"<p align='center'><img src='../static/import-complete.png' alt='complete import image'/></p>"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"---\n",
"# Summary\n",
"\n",
"Congrats! You have now successfully:\n",
"\n",
"1. created a new repo for your course content to live\n",
"\n",
"2. imported the starting code from our template"
]
}
],
"metadata": {
"colab": {
"collapsed_sections": [],
"include_colab_link": true,
"name": "W1D1_Tutorial1",
"provenance": [],
"toc_visible": true
},
"kernel": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
Loading

0 comments on commit 7b6726b

Please sign in to comment.