Skip to content

Commit e56afe0

Browse files
Merge pull request #341 from coding-for-reproducible-research/accessibility_patches
Accessibility Patches
2 parents 254de2e + dfca19e commit e56afe0

File tree

6 files changed

+3070
-1349
lines changed

6 files changed

+3070
-1349
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,5 @@ execute:
115115
- 'individual_modules/introduction_to_python/analysis_task_3.ipynb'
116116
- 'short_courses/r_unit_testing.ipynb'
117117
- 'short_courses/r_functions.ipynb'
118+
- 'short_courses/r_functions.ipynb'
119+
- 'individual_modules/markdown_with_python/ch2_liveOutput.ipynb'

individual_modules/introduction_to_r/data_types.ipynb

Lines changed: 11 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,7 +1956,7 @@
19561956
},
19571957
{
19581958
"cell_type": "code",
1959-
"execution_count": 23,
1959+
"execution_count": 3,
19601960
"id": "71ed3b63-2c93-4469-9a40-f9c8bf169dd9",
19611961
"metadata": {
19621962
"editable": true,
@@ -1968,43 +1968,25 @@
19681968
"outputs": [
19691969
{
19701970
"data": {
1971-
"text/html": [
1972-
"<table class=\"dataframe\">\n",
1973-
"<caption>A matrix: 2 × 3 of type int</caption>\n",
1974-
"<tbody>\n",
1975-
"\t<tr><td>1</td><td>3</td><td>5</td></tr>\n",
1976-
"\t<tr><td>2</td><td>4</td><td>6</td></tr>\n",
1977-
"</tbody>\n",
1978-
"</table>\n"
1979-
],
1980-
"text/latex": [
1981-
"A matrix: 2 × 3 of type int\n",
1982-
"\\begin{tabular}{lll}\n",
1983-
"\t 1 & 3 & 5\\\\\n",
1984-
"\t 2 & 4 & 6\\\\\n",
1985-
"\\end{tabular}\n"
1986-
],
1987-
"text/markdown": [
1971+
"text/plain": [
19881972
"\n",
1989-
"A matrix: 2 × 3 of type int\n",
19901973
"\n",
1991-
"| 1 | 3 | 5 |\n",
1992-
"| 2 | 4 | 6 |\n",
1993-
"\n"
1994-
],
1995-
"text/plain": [
1996-
" [,1] [,2] [,3]\n",
1997-
"[1,] 1 3 5 \n",
1998-
"[2,] 2 4 6 "
1974+
"Table: A matrix: 2 × 3 of type int\n",
1975+
"\n",
1976+
"| | | |\n",
1977+
"|--:|--:|--:|\n",
1978+
"| 1| 3| 5|\n",
1979+
"| 2| 4| 6|"
19991980
]
20001981
},
20011982
"metadata": {},
20021983
"output_type": "display_data"
20031984
}
20041985
],
20051986
"source": [
2006-
"m<-matrix(1:6, nrow=2, ncol=3)\n",
2007-
"m"
1987+
"library(knitr)\n",
1988+
"m <- matrix(1:6, nrow = 2, ncol = 3)\n",
1989+
"kable(m, caption = \"A matrix: 2 × 3 of type int\")"
20081990
]
20091991
},
20101992
{

individual_modules/introduction_to_r/plots.ipynb

Lines changed: 13 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@
11261126
},
11271127
{
11281128
"cell_type": "code",
1129-
"execution_count": 22,
1129+
"execution_count": 1,
11301130
"id": "c95a2b0c-e0dc-4aec-a564-e365a5d6825d",
11311131
"metadata": {
11321132
"editable": true,
@@ -1138,42 +1138,27 @@
11381138
"outputs": [
11391139
{
11401140
"data": {
1141-
"text/html": [
1142-
"<table class=\"dataframe\">\n",
1143-
"<caption>A matrix: 2 × 2 of type dbl</caption>\n",
1144-
"<tbody>\n",
1145-
"\t<tr><td>1</td><td>1</td></tr>\n",
1146-
"\t<tr><td>2</td><td>3</td></tr>\n",
1147-
"</tbody>\n",
1148-
"</table>\n"
1149-
],
1150-
"text/latex": [
1151-
"A matrix: 2 × 2 of type dbl\n",
1152-
"\\begin{tabular}{ll}\n",
1153-
"\t 1 & 1\\\\\n",
1154-
"\t 2 & 3\\\\\n",
1155-
"\\end{tabular}\n"
1156-
],
1157-
"text/markdown": [
1141+
"text/plain": [
11581142
"\n",
1159-
"A matrix: 2 × 2 of type dbl\n",
11601143
"\n",
1161-
"| 1 | 1 |\n",
1162-
"| 2 | 3 |\n",
1163-
"\n"
1164-
],
1165-
"text/plain": [
1166-
" [,1] [,2]\n",
1167-
"[1,] 1 1 \n",
1168-
"[2,] 2 3 "
1144+
"Table: A matrix: 2 × 2 filled by row\n",
1145+
"\n",
1146+
"| | |\n",
1147+
"|--:|--:|\n",
1148+
"| 1| 1|\n",
1149+
"| 2| 3|"
11691150
]
11701151
},
11711152
"metadata": {},
11721153
"output_type": "display_data"
11731154
}
11741155
],
11751156
"source": [
1176-
"matrix(c(1, 1, 2, 3), nrow = 2, ncol = 2, byrow = TRUE)"
1157+
"library(knitr)\n",
1158+
"\n",
1159+
"m <- matrix(c(1, 1, 2, 3), nrow = 2, ncol = 2, byrow = TRUE)\n",
1160+
"\n",
1161+
"kable(m, caption = \"A matrix: 2 × 2 filled by row\")\n"
11771162
]
11781163
},
11791164
{

individual_modules/python_for_data_analysis/Python_ScikitLearn.ipynb

Lines changed: 2450 additions & 1048 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)