Skip to content

Commit 7dc93c5

Browse files
committed
Merge branch 'main' of github.com:cu-comptools/fall2025
2 parents d08a751 + 3847050 commit 7dc93c5

1 file changed

Lines changed: 18 additions & 17 deletions

File tree

github.ipynb

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,16 @@
2828
"This [book on git](https://git-scm.com/book/en/v2/Getting-Started-The-Command-Line) serves as a complete reference for the system and is an excellent source of information with many examples.\n",
2929
"\n",
3030
"```{admonition} Exercise\n",
31-
"Create an account on GitHub. \n",
32-
"It is strongly recommended that you use the command line interface, so if you're using Windows, please make sure you have access to a unix-based terminal, via e.g. the [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/about), or [Cygwin](https://www.cygwin.com), or the Windows Terminal, or Git Bash, etc.\n",
33-
"Then share your username with the instructor so you can be added to our GitHub classroom.\n",
31+
"1. Create an account on GitHub.\n",
32+
"2. It is strongly recommended that you use the command line interface, so if you're using Windows, please make sure you have access to a unix-based terminal, via e.g. the [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/about), or [Cygwin](https://www.cygwin.com), or the Windows Terminal, or Git Bash, etc. To install it,\n",
33+
"```bash \n",
34+
"sudo apt-get install git\n",
35+
"```\n",
36+
"on Linux, or\n",
37+
"```bash\n",
38+
"brew install git\n",
39+
"```\n",
40+
"on MacOS.\n",
3441
"```\n",
3542
"\n",
3643
"### 2.1.1 Repositories, cloning and forking\n",
@@ -95,7 +102,7 @@
95102
"\n",
96103
"```{admonition} \n",
97104
":class: warning\n",
98-
"Avoid storing binary files on GitHub, as even incremental changes to these result in large commits and you'll run out of your storage/bandwidth quota.\n",
105+
"Avoid storing binary files (e.g *.pdf, *.o) on GitHub, as even incremental changes to these result in large commits and you'll run out of your storage/bandwidth quota.\n",
99106
"```\n",
100107
"\n",
101108
"It is good practice to add an **informative** commit message so that future you can understand what changes were made in a commit. \n",
@@ -119,7 +126,7 @@
119126
"2. Examples\n",
120127
"3. API- (application programmer's interface) level documentation\n",
121128
"\n",
122-
"In-line comments may be enough for yourself to understand code that you wrote a few months back, but is insufficient in general. A much better practice is to write a _docstring_, a short description for each function, which has the following general structure (regardless of programming language, though shown in Python):\n",
129+
"In-line comments may be enough for yourself to understand code that you wrote a few months back, and they are useful, but insufficient on their own. A much better practice is to write a _docstring_, a short description for each function, which has the following general structure (regardless of programming language, though shown in Python):\n",
123130
"\n",
124131
"- A short description of the function,\n",
125132
"- Input parameters with types and a brief description (e.g. any restrictions, default values, physical/mathematical meaning),\n",
@@ -156,7 +163,7 @@
156163
"id": "75a3eb2a",
157164
"metadata": {},
158165
"source": [
159-
"If you write docstrings in the above format (which is called the NumPy format), or a different standardized format such as the Google format, it can be converted to API documentation automatically. For example, [this C++/Python software package](https://oscode.readthedocs.io/en/latest/) has API documentation that was auto-generated from docstrings. Docstrings may contain math formulae, or more complicated examples, see e.g the SciPy documentation."
166+
"If you write docstrings in the above format (which is called the NumPy format), or a different standardized format such as the Google format, it can be converted to API documentation automatically. For example, [this C++/Python software package](https://oscode.readthedocs.io/en/latest/) has API documentation that was auto-generated from docstrings. Docstrings may contain math formulae, or more complicated examples, see e.g the [SciPy documentation](https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_ivp.html) (click on \"source\" near the name of the function the link leads you to and you'll see that it was all generated from a docstring)."
160167
]
161168
},
162169
{
@@ -176,22 +183,16 @@
176183
},
177184
{
178185
"cell_type": "markdown",
179-
"id": "f2befda8",
186+
"id": "e942dc2f-9e2d-4a79-8e1c-63adf3f13a67",
180187
"metadata": {},
181188
"source": [
182189
"```{admonition} Exercises\n",
183190
":class: danger\n",
184-
"For exercises on writing docstrings and unit tests, please see the [Git and GitHub tutorial repository](https://github.com/cu-comptools/git-tutorial-2025).\n",
191+
"1. For this exercise, you'll need to clone the repository at `https://github.com/cu-comptools/gh-tutorial`.\n",
192+
"\n",
193+
"\n",
185194
"```"
186195
]
187-
},
188-
{
189-
"cell_type": "code",
190-
"execution_count": null,
191-
"id": "bebd8bfe",
192-
"metadata": {},
193-
"outputs": [],
194-
"source": []
195196
}
196197
],
197198
"metadata": {
@@ -210,7 +211,7 @@
210211
"name": "python",
211212
"nbconvert_exporter": "python",
212213
"pygments_lexer": "ipython3",
213-
"version": "3.10.16"
214+
"version": "3.12.3"
214215
}
215216
},
216217
"nbformat": 4,

0 commit comments

Comments
 (0)