|
89 | 89 | },
|
90 | 90 | {
|
91 | 91 | "cell_type": "code",
|
92 |
| - "execution_count": 9, |
| 92 | + "execution_count": 1, |
93 | 93 | "id": "0a814add-f545-4663-8b06-39c40b636509",
|
94 | 94 | "metadata": {
|
95 | 95 | "editable": true,
|
|
103 | 103 | "outputs": [
|
104 | 104 | {
|
105 | 105 | "data": {
|
106 |
| - "text/markdown": [ |
107 |
| - "<div align='center'>\n", |
108 |
| - "\n", |
109 |
| - "| Course Name | Course Info | Course Leader | Course Helpers | Course Developers |\n", |
110 |
| - "| --- | --- | --- | --- | --- |\n", |
111 |
| - "| Introduction to Python | 23rd/30th October 10am-1pm (online) | Tom Wilson | Liam Berrisford | Michael Saunby, Simon Kirby, Duncan McDougall, Eilis Hannon |\n", |
| 106 | + "text/html": [ |
112 | 107 | "\n",
|
113 |
| - "</div>" |
| 108 | + "<table style='width: 100%; text-align: center; border: 1px solid black; border-collapse: collapse;'>\n", |
| 109 | + "<tr>\n", |
| 110 | + "<th>Course Name</th>\n", |
| 111 | + "<th>Course Info</th>\n", |
| 112 | + "<th>Course Leader</th>\n", |
| 113 | + "<th>Course Helpers</th>\n", |
| 114 | + "<th>Course Developers</th>\n", |
| 115 | + "</tr>\n", |
| 116 | + "<tr><td>Introduction to UNIX </td><td>October 2023</td></tr>\n", |
| 117 | + "<tr><td>Introduction to Python</td><td>November 2023</td></tr>\n", |
| 118 | + "<tr><td>Introduction to julia</td><td>November/December 2023</td></tr>\n", |
| 119 | + "<tr><td>Introduction to HPC and ISCA</td><td>November 2023</td></tr>\n", |
| 120 | + "<tr><td>Introduction to Version Control</td><td>December 2023</td></tr>\n", |
| 121 | + "<tr><td>Introduction to R</td><td>January 2024</td></tr>\n", |
| 122 | + "<tr><td>Regression Analysis with R</td><td>January 2024</td></tr>\n", |
| 123 | + "<tr><td>Introduction to UNIX </td><td>March 2024</td></tr>\n", |
| 124 | + "<tr><td>Introduction to Python</td><td>April 2024</td></tr>\n", |
| 125 | + "<tr><td>Computational Thinking</td><td>April 2024</td></tr>\n", |
| 126 | + "<tr><td>Software Development Best Practice</td><td>April 2024</td></tr>\n", |
| 127 | + "<tr><td>Advanced Regression Analysis with R</td><td>April 2024</td></tr>\n", |
| 128 | + "<tr><td>Introduction to Version Control</td><td>May 2024</td></tr>\n", |
| 129 | + "<tr><td>Python for Data Analysis</td><td>May 2024</td></tr>\n", |
| 130 | + "<tr><td>Intermediate Version Control</td><td>May 2024</td></tr>\n", |
| 131 | + "<tr><td>Introduction to R</td><td>June 2024</td></tr>\n", |
| 132 | + "<tr><td>Parallel Computing </td><td>June 2024</td></tr>\n", |
| 133 | + "<tr><td>Introduction to MATLAB</td><td>June 2024</td></tr>\n", |
| 134 | + "<tr><td>Regression Analysis with R</td><td>June 2024</td></tr></table>" |
114 | 135 | ],
|
115 | 136 | "text/plain": [
|
116 |
| - "<IPython.core.display.Markdown object>" |
| 137 | + "<IPython.core.display.HTML object>" |
117 | 138 | ]
|
118 | 139 | },
|
119 | 140 | "metadata": {},
|
|
133 | 154 | "\n",
|
134 | 155 | "# Function to generate an HTML table row for each course\n",
|
135 | 156 | "def generate_html_row(row):\n",
|
136 |
| - " return f\"<tr><td>{row['Course Name']}</td><td>{row['Course Info']}</td><td>{row['Course Leader']}</td><td>{row['Course Helpers']}</td><td>{row['Course Developers']}</td></tr>\"\n", |
| 157 | + " #return f\"<tr><td>{row['Course Name']}</td><td>{row['Course Info']}</td><td>{row['Course Leader']}</td><td>{row['Course Helpers']}</td><td>{row['Course Developers']}</td></tr>\"\n", |
| 158 | + " return f\"<tr><td>{row['Course Name']}</td><td>{row['Course Info']}</td></tr>\"\n", |
137 | 159 | "\n",
|
138 | 160 | "# Generate HTML table header\n",
|
| 161 | + "# html_table_header = \"\"\"\n", |
| 162 | + "# <table style='width: 100%; text-align: center; border: 1px solid black; border-collapse: collapse;'>\n", |
| 163 | + "# <tr>\n", |
| 164 | + "# <th>Course Name</th>\n", |
| 165 | + "# <th>Course Info</th>\n", |
| 166 | + "# <th>Course Leader</th>\n", |
| 167 | + "# <th>Course Helpers</th>\n", |
| 168 | + "# <th>Course Developers</th>\n", |
| 169 | + "# </tr>\n", |
| 170 | + "# \"\"\"\n", |
139 | 171 | "html_table_header = \"\"\"\n",
|
140 | 172 | "<table style='width: 100%; text-align: center; border: 1px solid black; border-collapse: collapse;'>\n",
|
141 | 173 | "<tr>\n",
|
142 | 174 | "<th>Course Name</th>\n",
|
143 | 175 | "<th>Course Info</th>\n",
|
144 |
| - "<th>Course Leader</th>\n", |
145 |
| - "<th>Course Helpers</th>\n", |
146 |
| - "<th>Course Developers</th>\n", |
147 | 176 | "</tr>\n",
|
148 | 177 | "\"\"\"\n",
|
149 | 178 | "\n",
|
|
0 commit comments