Skip to content

Commit 86fab1d

Browse files
Merge pull request #265 from coding-for-reproducible-research/md_with_python
Add markdown with python
2 parents a319bb3 + 920cbf8 commit 86fab1d

20 files changed

+10037
-4
lines changed

_static/multiple_regression_hyperplane.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

_static/multiple_regression_hyperplane_2.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

_static/workshops_network_hpc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ <h1></h1>
282282

283283

284284
// parsing and collecting nodes and edges from the python
285-
nodes = new vis.DataSet([{"color": "#4682B4", "id": "Introduction to HPC", "label": "Introduction to HPC", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Introduction to HPC\nCourse Pre-reqs: Introduction to Unix\nSubsequent Courses: Parallel Computing"}, {"color": "#4682B4", "id": "Parallel Computing", "label": "Parallel Computing", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Parallel Computing\nCourse Pre-reqs: Introduction to HPC\nSubsequent Courses: None"}, {"color": "#4682B4", "id": "Introduction to Unix", "label": "Introduction to Unix", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Unix\nCourse Pre-reqs: None\nSubsequent Courses: Introduction to HPC, Introduction to Version Control with Git and GitHub"}, {"color": "#4682B4", "id": "Introduction to Version Control with Git and GitHub", "label": "Introduction to Version Control with Git and GitHub", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Version Control with Git and GitHub\nCourse Pre-reqs: Introduction to Unix\nSubsequent Courses: Intermediate Version Control"}, {"color": "#4682B4", "id": "Intermediate Version Control", "label": "Intermediate Version Control", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Intermediate Version Control\nCourse Pre-reqs: Introduction to Version Control with Git and GitHub\nSubsequent Courses: None"}, {"color": "#4682B4", "id": "Introduction to Python", "label": "Introduction to Python", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Python\nCourse Pre-reqs: None\nSubsequent Courses: None"}]);
285+
nodes = new vis.DataSet([{"color": "#FF6347", "id": "Introduction to HPC", "label": "Introduction to HPC", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Introduction to HPC\nCourse Pre-reqs: Introduction to Unix\nSubsequent Courses: Parallel Computing"}, {"color": "#FF6347", "id": "Parallel Computing", "label": "Parallel Computing", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Parallel Computing\nCourse Pre-reqs: Introduction to HPC\nSubsequent Courses: None"}, {"color": "#FF6347", "id": "Introduction to Unix", "label": "Introduction to Unix", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Unix\nCourse Pre-reqs: None\nSubsequent Courses: Introduction to HPC, Introduction to Version Control with Git and GitHub"}, {"color": "#FF6347", "id": "Introduction to Version Control with Git and GitHub", "label": "Introduction to Version Control with Git and GitHub", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Version Control with Git and GitHub\nCourse Pre-reqs: Introduction to Unix\nSubsequent Courses: Intermediate Version Control"}, {"color": "#FF6347", "id": "Intermediate Version Control", "label": "Intermediate Version Control", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Intermediate Version Control\nCourse Pre-reqs: Introduction to Version Control with Git and GitHub\nSubsequent Courses: None"}, {"color": "#FF6347", "id": "Introduction to Python", "label": "Introduction to Python", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Python\nCourse Pre-reqs: None\nSubsequent Courses: None"}]);
286286
edges = new vis.DataSet([{"arrows": "to", "from": "Introduction to HPC", "to": "Parallel Computing", "width": 1}, {"arrows": "to", "from": "Introduction to Unix", "to": "Introduction to HPC", "width": 1}, {"arrows": "to", "from": "Introduction to Unix", "to": "Introduction to Version Control with Git and GitHub", "width": 1}, {"arrows": "to", "from": "Introduction to Version Control with Git and GitHub", "to": "Intermediate Version Control", "width": 1}]);
287287

288288
nodeColors = {};

_static/workshops_network_r_ds.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ <h1></h1>
282282

283283

284284
// parsing and collecting nodes and edges from the python
285-
nodes = new vis.DataSet([{"color": "#FF6347", "id": "Introduction to R", "label": "Introduction to R", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to R\nCourse Pre-reqs: None\nSubsequent Courses: Regression analysis with R, Working With Data In R"}, {"color": "#FF6347", "id": "Regression analysis with R", "label": "Regression analysis with R", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Regression analysis with R\nCourse Pre-reqs: Introduction to R\nSubsequent Courses: Advanced Regression Analysis With R "}, {"color": "#FF6347", "id": "Working With Data In R", "label": "Working With Data In R", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Working With Data In R\nCourse Pre-reqs: Introduction to R\nSubsequent Courses: None"}, {"color": "#FF6347", "id": "Advanced Regression Analysis With R ", "label": "Advanced Regression Analysis With R ", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Advanced Regression Analysis With R \nCourse Pre-reqs: Regression analysis with R\nSubsequent Courses: None"}, {"color": "#FF6347", "id": "Introduction to Version Control with Git and GitHub", "label": "Introduction to Version Control with Git and GitHub", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Version Control with Git and GitHub\nCourse Pre-reqs: Introduction to Unix\nSubsequent Courses: Intermediate Version Control"}, {"color": "#FF6347", "id": "Intermediate Version Control", "label": "Intermediate Version Control", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Intermediate Version Control\nCourse Pre-reqs: Introduction to Version Control with Git and GitHub\nSubsequent Courses: None"}, {"color": "#FF6347", "id": "Introduction to Unix", "label": "Introduction to Unix", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Unix\nCourse Pre-reqs: None\nSubsequent Courses: Introduction to Version Control with Git and GitHub"}]);
285+
nodes = new vis.DataSet([{"color": "#4682B4", "id": "Introduction to R", "label": "Introduction to R", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to R\nCourse Pre-reqs: None\nSubsequent Courses: Regression analysis with R, Working With Data In R"}, {"color": "#4682B4", "id": "Regression analysis with R", "label": "Regression analysis with R", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Regression analysis with R\nCourse Pre-reqs: Introduction to R\nSubsequent Courses: Advanced Regression Analysis With R "}, {"color": "#4682B4", "id": "Working With Data In R", "label": "Working With Data In R", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Working With Data In R\nCourse Pre-reqs: Introduction to R\nSubsequent Courses: None"}, {"color": "#4682B4", "id": "Advanced Regression Analysis With R ", "label": "Advanced Regression Analysis With R ", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Advanced Regression Analysis With R \nCourse Pre-reqs: Regression analysis with R\nSubsequent Courses: None"}, {"color": "#4682B4", "id": "Introduction to Version Control with Git and GitHub", "label": "Introduction to Version Control with Git and GitHub", "level": 2, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Version Control with Git and GitHub\nCourse Pre-reqs: Introduction to Unix\nSubsequent Courses: Intermediate Version Control"}, {"color": "#4682B4", "id": "Intermediate Version Control", "label": "Intermediate Version Control", "level": 3, "shape": "dot", "size": 10, "title": "Course Name: Intermediate Version Control\nCourse Pre-reqs: Introduction to Version Control with Git and GitHub\nSubsequent Courses: None"}, {"color": "#4682B4", "id": "Introduction to Unix", "label": "Introduction to Unix", "level": 1, "shape": "dot", "size": 10, "title": "Course Name: Introduction to Unix\nCourse Pre-reqs: None\nSubsequent Courses: Introduction to Version Control with Git and GitHub"}]);
286286
edges = new vis.DataSet([{"arrows": "to", "from": "Introduction to R", "to": "Regression analysis with R", "width": 1}, {"arrows": "to", "from": "Introduction to R", "to": "Working With Data In R", "width": 1}, {"arrows": "to", "from": "Regression analysis with R", "to": "Advanced Regression Analysis With R ", "width": 1}, {"arrows": "to", "from": "Introduction to Version Control with Git and GitHub", "to": "Intermediate Version Control", "width": 1}, {"arrows": "to", "from": "Introduction to Unix", "to": "Introduction to Version Control with Git and GitHub", "width": 1}]);
287287

288288
nodeColors = {};

_toc.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ parts:
2424
- file: programme_information/intro_to_python
2525
- file: programme_information/python_for_data_analysis
2626
- file: programme_information/introduction_to_machine_learning
27+
- file: programme_information/markdown_with_python
2728
- file: programme_information/R
2829
sections:
2930
- file: programme_information/intro_to_r
@@ -137,6 +138,15 @@ parts:
137138
- file: individual_modules/introduction_to_machine_learning/2_model_selection
138139
- file: individual_modules/introduction_to_machine_learning/3_pipeline_task
139140
- file: individual_modules/introduction_to_machine_learning/4_unsupervised_learning
141+
- file: individual_modules/section_landing_pages/markdown_with_python
142+
sections:
143+
- file: individual_modules/markdown_with_python/2-Motivation-and-Background
144+
- file: individual_modules/markdown_with_python/3-Markdown-Fundamentals
145+
- file: individual_modules/markdown_with_python/4-Markdown-Task-1
146+
- file: individual_modules/markdown_with_python/5-How-to-embed-Python-Code-in-Markdown
147+
- file: individual_modules/markdown_with_python/6-Export-the-Document
148+
- file: individual_modules/markdown_with_python/7-Markdown-Task-2
149+
- file: individual_modules/markdown_with_python/8-Further-Knowledge
140150
- file: course_homepages/R
141151
sections:
142152
- file: individual_modules/section_landing_pages/introduction_to_r
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Motivation: Why use Markdown with Python?
2+
3+
## Learning Objectives
4+
- Explain what markup languages are
5+
- Describe what Markdown is and why we would want to use it
6+
- Understand the benefits of embedding Python code in Markdown
7+
8+
## What is a Markup language?
9+
A markup language is a system for annotating text so that it can be formatted and structured when displayed. Unlike programming languages, which execute commands, markup languages are used to define the appearance and structure of text in documents, web pages, and other digital formats.
10+
11+
## How Markup Languages Work
12+
Markup languages use tags or symbols to indicate formatting elements such as headings, bold text, links, and lists. These annotations do not appear in the final document but determine how content is displayed. Popular markup languages include HTML, XML, Markdown and Latex. They each have their own benefits and use cases. In this course we will be focusing on Markdown.
13+
14+
## What is Markdown?
15+
Markdown is a lightweight markup language that allows you to format text using a simple syntax. It is widely used for writing documentation, README files and technical papers because it is easy to read and write. These course materials are written in Markdown.
16+
17+
Unlike traditional word processing formats, Markdown is plain text, making it highly portable and compatible with version control systems like Git.
18+
19+
## Why Use Markdown?
20+
Markdown offers several benefits:
21+
- Simplicity: Its syntax is easy to learn and use.
22+
- Readability: Even without being rendered, Markdown files remain highly readable.
23+
- Portability: It is supported across various platforms and can be converted to formats like HTML and PDF.
24+
- Integration: Many platforms, including GitHub, Jupyter Notebooks, and documentation generators, support Markdown natively.
25+
26+
## Embedding Python Code in Markdown
27+
A powerful feature of using Markdown is its ability to embed and highlight code snippets. Markdown can do this for a variety of different programming languages and in this course, we will be demonstrating this with Python.
28+
29+
## The benefits of embedding Python Code in Markdown
30+
Here are some of the reasons why using Markdown with Python for your research and code development could enhance your work.
31+
- Readability and Clarity. When integrating Markdown with environments like Jupyter Notebooks, you will be able to display your code and research in a structured and readable format. You can use it to present text, tables, code, equations and images. This is particularly useful when writing documentation for your software or communicating research results to your peers.
32+
33+
- Reproducibility and Research. For data science, machine learning, and research, embedding Python in Markdown allows researchers to present their explanations and findings alongside the actual code. This is helpful when understanding the logic behind the code is as important as the code itself. It also ensures that code, results, and explanations are all in one place, and importantly, facilitates reproducibility, allowing others to verify and build upon the work.
34+
35+
- Code Execution and Outputs. In environments like Jupyter Notebooks, Markdown is not just for formatting — it also allows for live interactions and executing code. Being able to contain explanations and visualizations alongside live code execution can be useful for data storytelling, where results are immediately visible after execution.

0 commit comments

Comments
 (0)