Skip to content

Commit e702a70

Browse files
sync content
1 parent 2418f14 commit e702a70

22 files changed

+14775
-56
lines changed

_site/docs/index.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11

2-
# Introduction to Python Workshop <img src="https://github.com/SouthernMethodistUniversity/intro-to-python/blob/main/images/python_logo.png" align="right" height="139"/>
2+
# Introduction to Python Workshop
33

44
This Python workshop intended for complete beginners to learn the basics of the Python programming language. This workshop covers the basics of installation, working with objects, and using control structures. It includes hands-on exercises to help you put your new skills into practice.
5+
<!---![Python Logo](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/python_logo.png) --->
6+
<img src="https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/python_logo.png" alt="Python logo" width="100"/>
7+
58

69
The content for this workshop is developed and taught by the [OIT Research Technology Services team at SMU](https://www.smu.edu/OIT/research) in collaboration with [SMU Libraries.](https://www.smu.edu/libraries/scholarship)
710

8-
We will have hands-on activities, so participants are encouraged to bring in and use their own laptops to insure the proper setup of tools for an efficient workflow once you leave the workshop. (We will provide instructions on setting up the required software several days in advance)
9-
There are no pre-requisites, and we will assume no prior knowledge about the tools.
11+
- We will teach Python using JupyterLab, a part of a family of [Jupyter](https://docs.jupyter.org/en/latest/) tools that includes Jupyter Notebook and JupyterLab, both of which provide interactive web environments where you can write and run Python code. If you followed the instructions linked above, JupyterLab is installed on your system. Alternatively, you can install JupyterLab on its own using conda, pip, or other popular package managers.
12+
13+
- We will have hands-on and practice activities, so participants are encouraged to bring in and use their own laptops to insure the proper setup of tools for an efficient workflow once you leave the workshop.
14+
- There are no pre-requisites, and we will assume no prior knowledge about the tools.
1015

1116
As you learn to code, you will generally need to install the following:
1217
- You will need to install a Programming language, in this case [Python.](https://pythoninstitute.org/about-python)
1318
- In addition to the language, you will likely be installing [Packages](https://pypi.org/help/#packages), which are collections of files that expand the capacities of the software package. For example, [NLTK (Natural Language Toolkit)](https://www.nltk.org/) incorporates text corpora (datasets) and libraries (collections of prewritten code) *specifically for working with text data.*
1419
- [IDE (integrated development environment)](https://aws.amazon.com/what-is/ide/) are software packages that allows you to work with and develop software code, usually including capabilities to edit source code, run and debug code, [etc.](https://en.wikipedia.org/wiki/Integrated_development_environment)
15-
- We will teach Python using JupyterLab, a part of a family of [Jupyter](https://docs.jupyter.org/en/latest/) tools that includes Jupyter Notebook and JupyterLab, both of which provide interactive web environments where you can write and run Python code. If you followed the instructions linked above, JupyterLab is installed on your system. Alternatively, you can install JupyterLab on its own using conda, pip, or other popular package managers.
20+
1621

1722
## Objectives
1823

_site/docs/jupyterlab.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ When you first open JupyterLab you will see two main panels. In the left sidebar
7575

7676
To the right you will see a `Launcher` tab. Here we have options to launch a Python 3 notebook, a Terminal (where we can use shell commands), text files, and other items. For now, we want to launch a new Python 3 notebook, so click once on the `Python 3 (ipykernel)` button underneath the Notebook header. You can also create a new notebook by selecting *New -> Notebook* from the *File* menu in the Menu Bar.
7777

78-
![Launching a new Python 3 Notebook](https://github.com/SouthernMethodistUniversity/intro-to-python/blob/main/images/0_jupyterlab_launcher.png){alt='screenshot of the JupyterLab for launching notebook'}
78+
![Launching a new Python 3 Notebook](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/0_jupyterlab_launcher.png)
79+
7980
When you start a new Notebook you should see a new tab labeled `Untitled.ipynb`. You will also see this file listed in the file browser to the left. Right-click on the `Untitled.ipynb` file in the file browser and choose `Rename` from the dropdown options. Let's call the notebook file, `workshop.ipynb`.
8081

8182
We will share more features of the JupyterLab environment as we advance through the lesson, but for now let's turn to how to run Python code.
@@ -122,7 +123,9 @@ You can add text to a Juypter notebook by selecting a cell, and changing the dro
122123
- [Markdown for Jupyter Cheatsheet (IBM)](https://www.ibm.com/docs/en/watson-studio-local/1.2.3?topic=notebooks-markdown-jupyter-cheatsheet)
123124
- [Markdown Guide (Matt Cone)](https://www.markdownguide.org/)
124125

125-
![Changing a cell from Code to Markdown](https://github.com/SouthernMethodistUniversity/intro-to-python/blob/main/images/0_jupyter_markdown_dd.png){alt='screenshot of the Jupyter notebook dropdown to change a cell to Markdown'}
126+
127+
![Changing a cell from Code to Markdown](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/0_jupyter_markdown_dd.png)
128+
126129

127130
You can also use "hotkeys"" to change Jupyter cells from Code to Markdown and back:
128131

@@ -140,6 +143,17 @@ Summary:
140143
- You can use a JupyterLab notebook to edit and run Python.
141144
- Notebooks can include both code and markdown (text) cells.
142145

146+
# Downlaod notebooks for this workshop
147+
148+
* [Go to the Respository for this workshop](https://github.com/SouthernMethodistUniversity/intro-to-python)
149+
150+
![Github link](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/repo.png)
151+
152+
* Click on Code to downlaod all files, or click into Docs to downlaod individual notebooks. Notbooks are these are indicated by .ipynb file type.
153+
![Download link](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/downloadrepo.png)
154+
155+
156+
143157
______________
144158

145159

_site/docs/jupyternotebook.ipynb

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
"\n",
6363
"#### Option One\n",
6464
"\n",
65-
"![Image of play button](https://github.com/SouthernMethodistUniversity/intro-to-python/blob/main/images/play_button.png) Click the code cell you wish to run and then push the \"Run\" button above. \n",
65+
"![Image of play button](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/play_button.png) Click the code cell you wish to run and then push the \"Run\" button above. \n",
66+
"\n",
6667
"#### Option Two\n",
6768
"\n",
6869
"Click the code cell you wish to run and press Ctrl + Enter (Windows) or shift + return (OS X) on your keyboard.\n",
@@ -145,7 +146,7 @@
145146
"source": [
146147
"By default, a code cellis created. To change the cell type, click on the dropdown menu.\n",
147148
"\n",
148-
"![Change cell type menu](https://github.com/SouthernMethodistUniversity/intro-to-python/blob/main/images/change_code_cell.gif)"
149+
"![Change cell type menu](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/change_code_cell.gif)"
149150
]
150151
},
151152
{
@@ -156,10 +157,7 @@
156157
"\n",
157158
"To delete a cell, select the cell (or set of cells) and select \"Delete Cells\" from the \"Edit\" menu. (Alternatively, press the key \"d\" twice.)To delete a cell, select the cell] (or set of cells) and select \"Delete Cells\" from the \"Edit\" menu. (Alternatively, press the key \"d\" twice.)\n",
158159
"\n",
159-
"![right clicking to delete cell](https://github.com/SouthernMethodistUniversity/intro-to-python/blob/main/images/delete_cell.gif)\n",
160-
"\n",
161-
"\n",
162-
"\n"
160+
"![right clicking to delete cell](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/delete_cell.gif)\n"
163161
]
164162
},
165163
{
@@ -222,8 +220,10 @@
222220
"This is a link to [Research & Scholarly Initiatives Digital Scholarship page](https://www.smu.edu/libraries/research-teaching/research/digital). \n",
223221
"\n",
224222
"#### Images\n",
223+
"<!---\n",
224+
"![Description of the image for accessibility(RSI logo)](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/RSIBlue.png)--->\n",
225225
"\n",
226-
"![Description of the image for accessibility(a jstor logo)](https://ithaka-labs.s3.amazonaws.com/static-files/images/tdm/tdmdocs/logoJSTOR.png)\n",
226+
"<img src=\"https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/RSIBlue.png\" alt=\"RSI logo\" width=\"200\"/>\n",
227227
"\n",
228228
"#### Horizontal Rule\n",
229229
"\n",
@@ -235,15 +235,21 @@
235235
"cell_type": "markdown",
236236
"metadata": {},
237237
"source": [
238+
"______\n",
238239
"Attribution\n",
240+
"![Creative Commons CC BY License](https://raw.githubusercontent.com/SouthernMethodistUniversity/intro-to-python/main/images/CC_BY.png)\n",
239241
"\n",
240-
"<img align=\"left\" src=\"https://github.com/SouthernMethodistUniversity/intro-to-python/blob/main/images/CC_BY.png\"><br />\n",
241-
"\n",
242-
"Created by [Nathan Kelber](http://nkelber.com) and Ted Lawless for [JSTOR Labs](https://labs.jstor.org/) under [Creative Commons CC BY License](https://creativecommons.org/licenses/by/4.0/)<br />\n",
243-
"\n",
242+
"Created by [Nathan Kelber](http://nkelber.com) and Ted Lawless for [JSTOR Labs](https://labs.jstor.org/) under [Creative Commons CC BY License](https://creativecommons.org/licenses/by/4.0/)\n",
244243
"___"
245244
]
246245
},
246+
{
247+
"cell_type": "code",
248+
"execution_count": null,
249+
"metadata": {},
250+
"outputs": [],
251+
"source": []
252+
},
247253
{
248254
"cell_type": "code",
249255
"execution_count": null,

_site/docs/nextsteps.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,34 @@
11

2-
32
# Next steps
43

5-
# Constellate: Python for Text Mining
4+
## Computational Resources at SMU
5+
6+
- [Guide](https://guides.smu.edu/computationalskills)
7+
- [LinkedIn Learning](https://www.smu.edu/OIT/Services/linkedin): Online courses on a variety of topics, including software & tech
8+
- [O'Reilly Learning Platform for Higher Education](https://go.oreilly.com/southern-methodist): Tech and business content, with training videos, case studies, certification prep, & more
9+
- [Upcoming Computational workshops](https://libcal.smu.edu/calendar/libraryworkshops?cid=15527&t=g&d=0000-00-00&cal=15527&ct=57549&inc=0)
610

7-
Constellate was workshop series to introduce Python for text analysis.
8-
- [More about downloading and accessing these notebooks.](https://github.com/SouthernMethodistUniversity/constellate-notebooks?tab=readme-ov-file#constellate-notebooks)
9-
#sequence
10-
- [getting started with jupyter](https://github.com/SouthernMethodistUniversity/constellate-notebooks/blob/master/Python-basics/getting-started-with-jupyter.ipynb)
11-
- [python basics 1](https://github.com/SouthernMethodistUniversity/constellate-notebooks/blob/master/Python-basics/python-basics-1.ipynb)
12-
- [python basics 2](https://github.com/SouthernMethodistUniversity/constellate-notebooks/blob/master/Python-basics/python-basics-2.ipynb)
13-
- [python basics 3](https://github.com/SouthernMethodistUniversity/constellate-notebooks/blob/master/Python-basics/python-basics-3.ipynb)
14-
- [python basics 4](https://github.com/SouthernMethodistUniversity/constellate-notebooks/blob/master/Python-basics/python-basics-4.ipynb)
15-
- [python basics 5](https://github.com/SouthernMethodistUniversity/constellate-notebooks/blob/master/Python-basics/python-basics-5.ipynb)
11+
## Python Resouuces
12+
- [Python For Beginners](https://www.python.org/about/gettingstarted/)
13+
- [W3Schools: Learn Python](https://www.w3schools.com/python/default.asp)
14+
- [GeeksforGeeks: Learn Python](https://www.geeksforgeeks.org/python/python-programming-language-tutorial/)
15+
- [Learn Python The Hard Way ](https://smu.primo.exlibrisgroup.com/permalink/01SMU_INST/12013t3/cdi_askewsholts_vlebooks_9780138270612)
16+
- [Learn Python the Hard Way (Companion Videos)](https://smu.primo.exlibrisgroup.com/permalink/01SMU_INST/6ctoa/alma9952405374603716)
1617

1718

18-
# Software Carpentry Lessons
19+
### Software Carpentry Lessons
1920
- [Programming with Python](https://swcarpentry.github.io/python-novice-inflammation/)
2021
- [Plotting and programming with Python](https://swcarpentry.github.io/python-novice-gapminder/)
2122
- [Data Analysis and Visualization in Python for Ecologists](https://datacarpentry.github.io/python-ecology-lesson/)
2223

23-
24-
# Programming Historian Lessons
24+
### Programming Historian Lessons
2525
- [Python lessons](https://programminghistorian.org/en/lessons/?topic=python)
2626

27-
# Google's Python Class
27+
### Google's Python Class
2828
- [Google's Python Class](https://developers.google.com/edu/python)
2929

30-
# [Python Practice](https://python.berkeley.edu/learn/)
30+
### Python Practice
31+
- [Python Practice](https://python.berkeley.edu/learn/) - Python Practice is a working group at UC Berkeley.
3132

32-
# Computational Resources at SMU
3333

34-
- [Guide](https://guides.smu.edu/computationalskills)
35-
- [LinkedIn Learning](https://www.smu.edu/OIT/Services/linkedin): Online courses on a variety of topics, including software & tech
36-
- [O'Reilly Learning Platform for Higher Education](https://go.oreilly.com/southern-methodist):-Tech and business content, with training videos, case studies, certification prep, & more
3734

0 commit comments

Comments
 (0)