Skip to content

Commit bc6e5b9

Browse files
Merge pull request #254 from coding-for-reproducible-research/remove_julia
Remove old version of intro to julia course
2 parents bcad9f4 + 616bc50 commit bc6e5b9

File tree

3 files changed

+2
-232
lines changed

3 files changed

+2
-232
lines changed

_toc.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -105,17 +105,6 @@ parts:
105105
- file: course_homepages/julia
106106
sections:
107107
- file: individual_modules/section_landing_pages/introduction_to_julia
108-
sections:
109-
- file: individual_modules/introduction_to_julia/introduction_to_julia
110-
- file: individual_modules/introduction_to_julia/variables
111-
- file: individual_modules/introduction_to_julia/operations
112-
- file: individual_modules/introduction_to_julia/control_flow
113-
- file: individual_modules/introduction_to_julia/functions
114-
- file: individual_modules/introduction_to_julia/arrays_and_matrices
115-
- file: individual_modules/introduction_to_julia/io
116-
- file: individual_modules/introduction_to_julia/package_management
117-
- file: individual_modules/introduction_to_julia/visualisation
118-
- file: individual_modules/introduction_to_julia/performant_code
119108
- file: course_homepages/python
120109
sections:
121110
- file: individual_modules/section_landing_pages/introduction_to_python
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
11
# Introduction to Julia
22

3-
## Overview
4-
Welcome to the Introduction to Julia course! This course has been created to give you an idea about Julia's particular language features; it assumes that you are already comfortable with the basics of programming, allowing for more interesting topics to be discussed outside the basics. To be able to best engage with this course it is recommended that you have gone through the material for both "Introduction to Python" and "Python for Data Analysis".
5-
6-
## Course Objectives
7-
- Understand Julia's high-level and high-performance goals, including multiple dispatch.
8-
- Learn to create and manipulate one-dimensional and multi-dimensional arrays using various functions and comprehensions.
9-
- Use conditional statements and loops (for and while) to control the flow of programs.
10-
- Create functions with different parameter types and return values, including exploring multiple dispatch and lambda functions.
11-
- Perform input and output operations, including reading from and writing to various file types such as text, CSV, Excel, and JSON.
12-
13-
## Pre-requisite Knowledge
14-
15-
Attendees of the workshop should already be familiar with a programming language and should have already installed and been able to run an example of a Julia code snippet.
3+
This course is currently under development.

programme_information/intro_to_julia.ipynb

Lines changed: 1 addition & 208 deletions
Original file line numberDiff line numberDiff line change
@@ -13,214 +13,7 @@
1313
"source": [
1414
"# Introduction to Julia\n",
1515
"\n",
16-
"## Course Description\n",
17-
"Welcome to the Introduction to Julia course! This course has been created to give you an idea of Julia's particular language features. It assumes you are already comfortable with the basics of programming, allowing for more detailed and interesting topics to be discussed. To be able to best engage with this course, it is therefore recommended that you are familiar with the content in both \"Introduction to Python\" and \"Python for Data Analysis\".\n",
18-
"\n",
19-
"## Course Objectives\n",
20-
"- Understand Julia's high-level and high-performance goals, including multiple dispatch.\n",
21-
"- Learn to create and manipulate one-dimensional and multi-dimensional arrays using various functions and comprehensions.\n",
22-
"- Use conditional statements and loops (for and while) to control the flow of programs.\n",
23-
"- Create functions with different parameter types and return values, including exploring multiple dispatch and lambda functions.\n",
24-
"- Perform input and output operations, including reading from and writing to various file types such as text, CSV, Excel, and JSON.\n",
25-
"\n",
26-
"## Pre-requisite Knowledge\n",
27-
"\n",
28-
"Attendees of the workshop should already be familiar with a programming language and should have already installed and been able to run an example of a Julia code snippet. \n",
29-
"\n",
30-
"## Sign-up \n",
31-
"\n",
32-
"To check for upcoming course dates and to register, please visit the Workshop Schedule and Sign-up page available [here](../cfrr_program_details/courses_overview.ipynb)."
33-
]
34-
},
35-
{
36-
"cell_type": "code",
37-
"execution_count": 1,
38-
"id": "ed784f7a-cb16-4595-bc34-9fad10e2310b",
39-
"metadata": {
40-
"editable": true,
41-
"slideshow": {
42-
"slide_type": ""
43-
},
44-
"tags": [
45-
"remove-input"
46-
]
47-
},
48-
"outputs": [
49-
{
50-
"data": {
51-
"text/html": [],
52-
"text/plain": [
53-
"<IPython.core.display.HTML object>"
54-
]
55-
},
56-
"metadata": {},
57-
"output_type": "display_data"
58-
}
59-
],
60-
"source": [
61-
"import pandas as pd\n",
62-
"from datetime import datetime\n",
63-
"from IPython.display import display, HTML\n",
64-
"\n",
65-
"# Define the course that is being looked at\n",
66-
"course_name = \"Introduction to Julia\"\n",
67-
"\n",
68-
"# Load the CSV file\n",
69-
"file_path = '../data/workshop_info.csv' # Adjust the path to your file location\n",
70-
"courses_df = pd.read_csv(file_path)\n",
71-
"\n",
72-
"# Strip any extra spaces in the column names\n",
73-
"courses_df.columns = courses_df.columns.str.strip()\n",
74-
"\n",
75-
"# Convert date columns to datetime\n",
76-
"courses_df['Start Date'] = pd.to_datetime(courses_df['Start Date'], dayfirst=True, errors='coerce')\n",
77-
"courses_df['End Date'] = pd.to_datetime(courses_df['End Date'], dayfirst=True, errors='coerce')\n",
78-
"\n",
79-
"# Get today's date\n",
80-
"today = datetime.now()\n",
81-
"\n",
82-
"# Function to generate markdown text based on the course dates\n",
83-
"def generate_html(row):\n",
84-
" if pd.notna(row['Start Date']) and pd.notna(row['End Date']):\n",
85-
" if row['Start Date'] <= today <= row['End Date']:\n",
86-
" return f\"<div style='font-weight: bold;'>This course is currently accepting applications.</div>\"\n",
87-
" return \"\"\n",
88-
"\n",
89-
"# Apply the function and create a new column for Markdown\n",
90-
"courses_df['HTML'] = courses_df.apply(generate_html, axis=1)\n",
91-
"\n",
92-
"# Variable for course name\n",
93-
"\n",
94-
"\n",
95-
"# Filter the DataFrame for the given course name and display the HTML text\n",
96-
"html_output = courses_df[courses_df['Course Name'] == course_name]['HTML'].values[0]\n",
97-
"display(HTML(html_output))\n"
98-
]
99-
},
100-
{
101-
"cell_type": "markdown",
102-
"id": "7d378ec2-28e2-4d30-b588-22b3273fec59",
103-
"metadata": {
104-
"editable": true,
105-
"slideshow": {
106-
"slide_type": ""
107-
},
108-
"tags": []
109-
},
110-
"source": [
111-
"## Installation Guide \n",
112-
"All CfRR courses require attendees to use their own computer/laptop to follow workshop activities and take effective notes. \n",
113-
"\n",
114-
"## Self Study Material Link \n",
115-
"The self-study material for this course is available [here](../individual_modules/section_landing_pages/introduction_to_julia.md).\n",
116-
"## Developers\n",
117-
"\n",
118-
"This course was developed by Liam Berrisford. \n",
119-
"\n",
120-
"## License Info "
121-
]
122-
},
123-
{
124-
"cell_type": "code",
125-
"execution_count": 2,
126-
"id": "64a0e3a8-e122-4e4c-8c74-20df65523e38",
127-
"metadata": {
128-
"editable": true,
129-
"slideshow": {
130-
"slide_type": ""
131-
},
132-
"tags": [
133-
"remove-input"
134-
]
135-
},
136-
"outputs": [
137-
{
138-
"data": {
139-
"text/markdown": [
140-
"### Instructional Material\n",
141-
"\n",
142-
"The instructional material in this course is copyright © 2024 University of Exeter\n",
143-
"and is made available under the Creative Commons Attribution 4.0 International\n",
144-
"licence (https://creativecommons.org/licenses/by/4.0/). Instructional material\n",
145-
"consists of material that is contained within the \"individual_modules/introduction_to_hpc\" folders in\n",
146-
"this repository, with the exception of code snippets and example programs found\n",
147-
"in files within these folders. Such code snippets and example programs are\n",
148-
"considered software for the purposes of this licence. \n",
149-
"\n",
150-
"\n",
151-
"### Software\n",
152-
"\n",
153-
"Except where otherwise noted, software provided in this repository is made\n",
154-
"available under the MIT licence (https://opensource.org/licenses/MIT).\n",
155-
"\n",
156-
"Copyright © 2024 University of Exeter\n",
157-
"\n",
158-
"Permission is hereby granted, free of charge, to any person obtaining a copy\n",
159-
"of this software and associated documentation files (the \"Software\"), to deal\n",
160-
"in the Software without restriction, including without limitation the rights\n",
161-
"to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n",
162-
"copies of the Software, and to permit persons to whom the Software is\n",
163-
"furnished to do so, subject to the following conditions:\n",
164-
"\n",
165-
"The above copyright notice and this permission notice shall be included in all\n",
166-
"copies or substantial portions of the Software.\n",
167-
"\n",
168-
"THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n",
169-
"IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n",
170-
"FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n",
171-
"AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n",
172-
"LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n",
173-
"OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n",
174-
"SOFTWARE.\n",
175-
"\n",
176-
"The software in this repository is adapted from software that is covered by the\n",
177-
"following copyright and permission notice:\n",
178-
"\n",
179-
" Copyright © 2024 Software Carpentry\n",
180-
"\n",
181-
" Permission is hereby granted, free of charge, to any person obtaining\n",
182-
" a copy of this software and associated documentation files (the\n",
183-
" \"Software\"), to deal in the Software without restriction, including\n",
184-
" without limitation the rights to use, copy, modify, merge, publish,\n",
185-
" distribute, sublicense, and/or sell copies of the Software, and to\n",
186-
" permit persons to whom the Software is furnished to do so, subject to\n",
187-
" the following conditions:\n",
188-
"\n",
189-
" The above copyright notice and this permission notice shall be\n",
190-
" included in all copies or substantial portions of the Software.\n",
191-
"\n",
192-
" THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n",
193-
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n",
194-
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n",
195-
" NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\n",
196-
" LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\n",
197-
" OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n",
198-
" WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
199-
],
200-
"text/plain": [
201-
"<IPython.core.display.Markdown object>"
202-
]
203-
},
204-
"metadata": {},
205-
"output_type": "display_data"
206-
}
207-
],
208-
"source": [
209-
"from IPython.display import Markdown, display\n",
210-
"\n",
211-
"def display_markdown(file_path):\n",
212-
" try:\n",
213-
" with open(file_path, 'r') as file:\n",
214-
" content = file.read()\n",
215-
" display(Markdown(content))\n",
216-
" except FileNotFoundError:\n",
217-
" print(f\"The file {file_path} was not found.\")\n",
218-
" except Exception as e:\n",
219-
" print(f\"An error occurred: {e}\")\n",
220-
"\n",
221-
"# Example usage:\n",
222-
"file_path = '../individual_modules/introduction_to_hpc/LICENSE.txt' # Replace with your file path\n",
223-
"display_markdown(file_path)"
16+
"This course is currently under development. "
22417
]
22518
},
22619
{

0 commit comments

Comments
 (0)