Skip to content

Commit

Permalink
deploy: c41022e
Browse files Browse the repository at this point in the history
  • Loading branch information
vonw committed Jan 11, 2024
1 parent ee3d03e commit 29157da
Show file tree
Hide file tree
Showing 32 changed files with 1,956 additions and 121 deletions.
5 changes: 5 additions & 0 deletions _sources/chapter0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Background - Blank Notebooks for Programming in Python (by Software Carpentry)

Chapter 0 includes the following computational notebooks:
- [Software Carpentry's Python Fundamentals](https://swcarpentry.github.io/python-novice-inflammation/01-intro.html)
- [Software Carpentry's Analyzing Patient Data](https://swcarpentry.github.io/python-novice-inflammation/01-intro.html)
88 changes: 88 additions & 0 deletions _sources/chapter0/softwareCarpentry-AnalyzingPatientData.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Software Carpentry - Analyzing Patient Data"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Read [Software Carpentry's Analyzing Patient Data](https://swcarpentry.github.io/python-novice-inflammation/02-numpy.html)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Using notebook cells below, type in the commands in the instructions to check your knowledge of Python variables. (The two cells below will get you started.)"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import numpy"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[0., 0., 1., ..., 3., 0., 0.],\n",
" [0., 1., 2., ..., 1., 0., 1.],\n",
" [0., 1., 1., ..., 2., 1., 1.],\n",
" ...,\n",
" [0., 1., 1., ..., 1., 1., 1.],\n",
" [0., 0., 0., ..., 0., 2., 0.],\n",
" [0., 0., 1., ..., 1., 1., 0.]])"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"numpy.loadtxt(fname='inflammation-01.csv', delimiter=',')"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "work",
"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.4"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
50 changes: 50 additions & 0 deletions _sources/chapter0/softwareCarpentry-PythonFundamentals.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Software Carpentry - Python Fundamentals"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Read [Software Carpentry's Python Fundamentals](https://swcarpentry.github.io/python-novice-inflammation/01-intro.html). Start by scrolling down to the section on Variables."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Using notebook cells below, type in the commands in the instructions to check your knowledge of Python variables. (The cell below is the first example.)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"3 + 5 * 4"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!wget https://github.com/swcarpentry/python-novice-inflammation/tree/main/episodes/data/inflammation-01.csv"
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
2 changes: 1 addition & 1 deletion _sources/chapter4/Insolation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.5"
"version": "3.11.4"
},
"vscode": {
"interpreter": {
Expand Down

0 comments on commit 29157da

Please sign in to comment.