Skip to content

Commit 8ddabc7

Browse files
authored
Merge pull request #28 from stefmolin/updates
Updates for 2024
2 parents 2a6ec8a + 403a78b commit 8ddabc7

18 files changed

+11875
-130973
lines changed

.github/workflows/env-checks.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This workflow builds the workshop environment on Mac, Linux, and Windows for
22
# multiple versions of Python to confirm it can be properly installed.
3-
#
3+
#
44
# Author: Stefanie Molin
55

66
name: Env Build
@@ -33,7 +33,7 @@ jobs:
3333

3434
# The type of runner that the job will run on
3535
runs-on: ${{ matrix.os }}
36-
36+
3737
defaults:
3838
run:
3939
shell: bash -el {0}
@@ -42,13 +42,13 @@ jobs:
4242
fail-fast: false
4343
matrix:
4444
os: [macos-latest, ubuntu-latest, windows-latest]
45-
python-version: ["3.8", "3.9", "3.10"]
45+
python-version: ["3.9", "3.10", "3.11", "3.12"]
4646

4747
# Steps represent a sequence of tasks that will be executed as part of the job
4848
steps:
4949
# checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
50-
- uses: actions/checkout@v3
51-
50+
- uses: actions/checkout@v4
51+
5252
# remove the Python version from the file for testing
5353
- name: strip hardcoded Python version from environment for testing
5454
run: |
@@ -59,12 +59,13 @@ jobs:
5959
fi;
6060
6161
# create the conda env
62-
- uses: conda-incubator/setup-miniconda@v2
62+
- uses: conda-incubator/setup-miniconda@v3
6363
with:
6464
python-version: ${{ matrix.python-version }}
6565
auto-update-conda: true
6666
miniforge-variant: Mambaforge
67-
use-mamba: true
67+
mamba-version: "*"
68+
channels: conda-forge
6869
channel-priority: true
6970
activate-environment: data_viz_workshop
7071
environment-file: environment.yml

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ While there are many plotting libraries to choose from, the prolific Matplotlib
1313

1414
## Workshop Outline
1515

16-
This is a workshop on data visualization in Python first delivered at [ODSC West 2021](https://odsc.com/speakers/introduction-to-data-visualization-in-python/) and subsequently at [ODSC East 2022](https://odsc.com/speakers/introduction-to-data-visualization-in-python/), [PyCon Italia 2022](https://pycon.it/en/talk/beyond-the-basics-data-visualization-in-python?day=2022-06-03), [ODSC Europe 2022](https://odsc.com/speakers/introduction-to-data-visualization-in-python/), [EuroPython 2022](https://ep2022.europython.eu/session/beyond-the-basics-data-visualization-in-python), [ODSC West 2022](https://odsc.com/speakers/introduction-to-data-visualization-in-python/), the Toronto Machine Learning Summit (TMLS) 2022, [PyCon US 2023](https://us.pycon.org/2023/schedule/presentation/17/), [ODSC East 2023](https://odsc.com/speakers/introduction-to-data-visualization-in-python/), [PyCon Italia 2023](https://pycon.it/en/event/beyond-the-basics-data-visualization-in-python-2), and [PyCon Portugal 2023](https://pretalx.evolutio.pt/pycon-pt-2023/talk/STX8K3/). It's divided into the following sections:
16+
This is a workshop on data visualization in Python first delivered at [ODSC West 2021](https://odsc.com/speakers/introduction-to-data-visualization-in-python/) and subsequently at [ODSC East 2022](https://odsc.com/speakers/introduction-to-data-visualization-in-python/), [PyCon Italia 2022](https://pycon.it/en/talk/beyond-the-basics-data-visualization-in-python?day=2022-06-03), [ODSC Europe 2022](https://odsc.com/speakers/introduction-to-data-visualization-in-python/), [EuroPython 2022](https://ep2022.europython.eu/session/beyond-the-basics-data-visualization-in-python), [ODSC West 2022](https://odsc.com/speakers/introduction-to-data-visualization-in-python/), the Toronto Machine Learning Summit (TMLS) 2022, [PyCon US 2023](https://us.pycon.org/2023/schedule/presentation/17/), [ODSC East 2023](https://odsc.com/speakers/introduction-to-data-visualization-in-python/), [PyCon Italia 2023](https://pycon.it/en/event/beyond-the-basics-data-visualization-in-python-2), [PyCon Portugal 2023](https://pretalx.evolutio.pt/pycon-pt-2023/talk/STX8K3/), and PyCon Colombia 2024. It's divided into the following sections:
1717

1818
### Section 1: Getting Started With Matplotlib
1919
We will begin by familiarizing ourselves with Matplotlib. Moving beyond the default options, we will explore how to customize various aspects of our visualizations. By the end of this section, you will be able to generate plots using the Matplotlib API directly, as well as customize the plots that libraries like pandas and Seaborn create for you.
@@ -39,7 +39,10 @@ You can work through the notebooks locally or in your browser. Pick the installa
3939
### Local Installation
4040
**Warning**: It is highly recommended that you use your personal laptop for the installation.
4141

42-
0. Install [Anaconda](https://docs.anaconda.com/anaconda/install/)/[Miniconda](https://docs.conda.io/en/latest/miniconda.html) or [Mambaforge](https://mamba.readthedocs.io/en/latest/installation.html#fresh-install), if not already installed.
42+
0. Install the following, if not already installed:
43+
- [Anaconda](https://docs.anaconda.com/anaconda/install/)/[Miniconda](https://docs.conda.io/en/latest/miniconda.html) or [Mambaforge](https://mamba.readthedocs.io/en/latest/installation.html#fresh-install)
44+
- [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
45+
4346
1. Fork this repository:
4447

4548
![location of fork button in GitHub](./media/fork_button.png)

environment.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ name: data_viz_workshop
22
channels:
33
- conda-forge
44
dependencies:
5-
- python>=3.8.0,<=3.10.20
6-
- bokeh=2.4.3
5+
- python>=3.9.0,<=3.13.0
6+
- bokeh=3.4.1
77
- ffmpeg
8-
- geopandas=0.12.2
9-
- jupyterlab>=3.5.2
10-
- matplotlib=3.7.1
11-
- numpy=1.23.5
12-
- pandas=2.0.0
13-
- seaborn=0.11.2
14-
- shapely=1.8.5
15-
- pyviz::geoviews-core=1.9.6
16-
- pyviz::geoviews=1.9.6
17-
- pyviz::holoviews=1.15.4
18-
- pyviz::hvplot=0.8.3
19-
- pyviz::panel=0.14.4
8+
- geopandas=0.14.4
9+
- jupyterlab>=4.1.8
10+
- matplotlib=3.8.4
11+
- numpy=1.26.4
12+
- pandas=2.2.2
13+
- seaborn=0.13.2
14+
- shapely=2.0.4
15+
- pyviz::geoviews-core=1.12.0
16+
- pyviz::geoviews=1.12.0
17+
- pyviz::holoviews=1.18.3
18+
- pyviz::hvplot=0.9.2
19+
- pyviz::panel=1.4.2

media/stackoverflow_questions.mp4

0 Bytes
Binary file not shown.

media/subway_entries_exercise.mp4

0 Bytes
Binary file not shown.

media/subway_entries_subplots.mp4

0 Bytes
Binary file not shown.

notebooks/0-check_your_env.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"name": "python",
6666
"nbconvert_exporter": "python",
6767
"pygments_lexer": "ipython3",
68-
"version": "3.10.10"
68+
"version": "3.12.3"
6969
}
7070
},
7171
"nbformat": 4,

0 commit comments

Comments
 (0)