Skip to content

Commit eec4865

Browse files
committed
2 parents dffd172 + 26064e3 commit eec4865

17 files changed

+270
-132
lines changed

.github/workflows/publish-site.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
with:
3131
name: repo-zip
3232
path: .
33+
include-hidden-files: 'true'
3334

3435
build:
3536
needs: automate-metrics
@@ -47,5 +48,4 @@ jobs:
4748
needs: build
4849
uses: ProjectPythia/cookbook-actions/.github/workflows/deploy-book.yaml@main
4950
with:
50-
cname: projectpythia.org
5151
publish_dir: 'portal/_build/html'

.github/workflows/sphinx-link-checker.yaml

+3-5
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,12 @@ jobs:
3333
steps:
3434
- uses: actions/checkout@v3
3535

36-
- name: Setup Mambaforge
36+
- name: Setup Miniforge
3737
uses: conda-incubator/setup-miniconda@v2
3838
with:
39-
miniforge-variant: Mambaforge
4039
miniforge-version: latest
4140
python-version: "3.10" # binderbot is failing with python 3.11
4241
activate-environment: ${{ inputs.environment_name }}
43-
use-mamba: true
4442

4543
- name: Set cache date
4644
if: inputs.use_cached_environment == 'true'
@@ -60,8 +58,8 @@ jobs:
6058
(inputs.use_cached_environment != 'true'
6159
|| steps.cache.outputs.cache-hit != 'true')
6260
run: |
63-
mamba env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }}
64-
mamba install -c conda-forge sphinxcontrib-applehelp=1.0.4 sphinxcontrib-devhelp=1.0.2 sphinxcontrib-htmlhelp=2.0.1 sphinxcontrib-qthelp=1.0.3 sphinxcontrib-serializinghtml=1.1.5
61+
conda env update -n ${{ inputs.environment_name }} -f ${{ inputs.environment_file }}
62+
conda install -c conda-forge sphinxcontrib-applehelp=1.0.4 sphinxcontrib-devhelp=1.0.2 sphinxcontrib-htmlhelp=2.0.1 sphinxcontrib-qthelp=1.0.3 sphinxcontrib-serializinghtml=1.1.5
6563
6664
- name: Check external links
6765
run: |

.github/workflows/trigger-preview.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
artifact_name: book-zip-${{ needs.find-pull-request.outputs.number }}
2020
destination_dir: _preview/${{ needs.find-pull-request.outputs.number }} # deploy to subdirectory labeled with PR number
2121
is_preview: 'true'
22-
cname: projectpythia.org
2322
publish_dir: 'portal/_build/html'
2423

2524
preview-comment:

.github/workflows/update-resource-gallery.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,15 @@ jobs:
9595
resource_gallery_file = 'portal/resource_gallery.yaml'
9696
9797
with open(submission_file, 'r') as file:
98-
data = json.load(file)
98+
new_data = json.load(file)
99+
100+
with open(resource_gallery_file, 'r') as yaml_file:
101+
existing_data = yaml.load(yaml_file, Loader=yaml.SafeLoader) or []
102+
103+
existing_data.append(new_data)
99104
100105
with open(resource_gallery_file, 'w') as yaml_file:
101-
yaml.dump(data, yaml_file)
106+
yaml.dump(existing_data, yaml_file, default_flow_style=False)
102107
103108
- name: Run pre-commit hooks
104109
run: |

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0
3+
rev: v5.0.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -10,7 +10,7 @@ repos:
1010
- id: double-quote-string-fixer
1111

1212
- repo: https://github.com/psf/black
13-
rev: 24.8.0
13+
rev: 25.1.0
1414
hooks:
1515
- id: black
1616

@@ -25,12 +25,12 @@ repos:
2525
- id: flake8
2626

2727
- repo: https://github.com/PyCQA/isort
28-
rev: 5.13.2
28+
rev: 6.0.0
2929
hooks:
3030
- id: isort
3131

3232
- repo: https://github.com/nbQA-dev/nbQA
33-
rev: 1.8.7
33+
rev: 1.9.1
3434
hooks:
3535
- id: nbqa-black
3636
- id: nbqa-pyupgrade

CODEOFCONDUCT.md

+1-53
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,3 @@
11
# Code of Conduct
22

3-
## Our Pledge
4-
5-
We, as contributors, creators, stewards, and maintainers (participants), of Project Pythia pledge to make participation in our software, system or hardware project and community a safe, productive, welcoming and inclusive experience for everyone. All participants are required to abide by this Code of Conduct. This includes respectful treatment of everyone regardless of age, body size, disability, ethnicity, gender identity or expression, level of experience, nationality, political affiliation, veteran status, pregnancy, genetic information, physical appearance, race, religion, or sexual orientation, as well as any other characteristic protected under applicable US federal or state law.
6-
7-
## Our Standards
8-
9-
Examples of behaviors that contribute to a positive environment include:
10-
11-
- All participants are treated with respect and consideration, valuing a diversity of views and opinions
12-
- Be considerate, respectful, and collaborative
13-
- Communicate openly with respect for others, critiquing ideas rather than individuals and gracefully accepting criticism
14-
- Acknowledging the contributions of others
15-
- Avoid personal attacks directed toward other participants
16-
- Be mindful of your surroundings and of your fellow participants
17-
- Alert project administrators if you notice a dangerous situation or someone in distress
18-
- Respect the rules and policies of the project and venue
19-
20-
Examples of unacceptable behavior include, but are not limited to:
21-
22-
- Harassment, intimidation, or discrimination in any form
23-
- Physical, verbal, or written abuse by anyone to anyone, including repeated use of pronouns other than those requested
24-
- Unwelcome sexual attention or advances
25-
- Personal attacks directed at other guests, members, participants, etc.
26-
- Publishing others’ private information, such as a physical or electronic address, without explicit permission
27-
- Alarming, intimidating, threatening, or hostile comments or conduct
28-
- Inappropriate use of nudity and/or sexual images
29-
- Threatening or stalking anyone, including a participant
30-
- Other conduct which could reasonably be considered inappropriate in a professional setting
31-
32-
## Scope of this Code
33-
34-
This Code of Conduct applies to all spaces managed by the Project whether they be physical, online or face-to-face. This includes project code, code repository, associated web pages, documentation, mailing lists, project websites and wiki pages, issue tracker, meetings, telecons, events, project social media accounts, and any other forums created by the project team which the community uses for communication. In addition, violations of this Code of Conduct outside these spaces may affect a person's ability to participate within them. Representation of a project may be further defined and clarified by project maintainers.
35-
36-
## Community Responsibilities
37-
38-
Everyone in the community is empowered to respond to people who are showing unacceptable behavior. They can talk to them privately or publicly. Anyone requested to stop unacceptable behavior is expected to comply immediately. If the behavior continues concerns may be brought to the project administrators or to any other party listed in the Reporting section below.
39-
40-
## Project Administrator Responsibilities
41-
42-
Project administrators are responsible for clarifying the standards of acceptable behavior and are encouraged to model appropriate behavior and provide support when people in the community point out inappropriate behavior. Project administrator(s) are normally the ones that would be tasked to carry out the actions in the Consequences section below.
43-
44-
## Reporting
45-
46-
Instances of unacceptable behavior can be brought to the attention of the project administrator(s) who may take any action as outlined in the Consequences section below.
47-
48-
## Consequences
49-
50-
Upon receipt of a complaint, the project administrator(s) may take any action deemed necessary and appropriate under the circumstances. Such action can include things such as: removing, editing, or rejecting comments, commits, code, wiki edits, email, issues, and other contributions that are not
51-
aligned to this Code of Conduct, or banning temporarily or permanently any contributor for other behaviors that are deemed inappropriate, threatening, offensive, or harmful. Project administrators also have the right to report violations to UCAR HR and/or UCAR’s Office of Diversity, Equity and Inclusion (ODEI), as well as a participant’s home institution and/or law enforcement. In the event an incident is reported to UCAR, UCAR will follow its Harassment Reporting and Complaint Procedure.
52-
53-
## Attribution
54-
55-
This Code of Conduct was originally adapted from the Contributor Covenant, version 1.4. We then aligned it with the UCAR Participant Code of Conduct, which also borrows from the American Geophysical Union (AGU) Code of Conduct. The UCAR Participant Code of Conduct applies to both UCAR employees as well as participants in activities run by UCAR. The original version of this for all software projects that have strong management from UCAR or UCAR staff is available on the UCAR website at [https://doi.org/10.5065/6w2c-a132](https://doi.org/10.5065/6w2c-a132). The date that it was adopted by this project was 20 December 2020. When responding to complaints, UCAR HR and ODEI will do so based on the latest published version. Therefore, any project-specific changes should follow the Process for Changes section above.
3+
_Our Code of Conduct statement is currently under review._

portal/_static/custom.css

+32-13
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
}
44

55
.bd-main .bd-content .bd-article-container {
6-
max-width: 100%; /* default is 60em */
6+
max-width: 100%;
7+
/* default is 60em */
78
}
9+
810
.bd-page-width {
9-
max-width: 100%; /* default is 88rem */
11+
max-width: 100%;
12+
/* default is 88rem */
1013
}
1114

1215
.sd-card-footer {
@@ -20,7 +23,8 @@ main.banner-main #project-pythia {
2023
}
2124

2225
main.banner-main #project-pythia p {
23-
font-size: 1.4rem; /* default: 1.25rem * /
26+
font-size: 1.4rem;
27+
/* default: 1.25rem * /
2428
/* font-weight: 700; default: 300 */
2529
}
2630

@@ -163,7 +167,7 @@ details.sd-dropdown {
163167
box-shadow: none !important;
164168
}
165169

166-
details.sd-dropdown summary.sd-card-header + div.sd-summary-content {
170+
details.sd-dropdown summary.sd-card-header+div.sd-summary-content {
167171
background-color: white !important;
168172
border: 0.2rem solid var(--pst-sd-dropdown-color) !important;
169173
border-radius: calc(.25rem - 1px);
@@ -195,18 +199,33 @@ p {
195199
margin-bottom: 1rem;
196200
}
197201

198-
html[data-theme="dark"] h1.display-1 {
199-
color: white;
202+
/* Set a light color for text throughout in dark mode */
203+
html[data-theme="dark"] body {
204+
color: #e0e0e0;
205+
/* Light gray */
200206
}
201207

202-
html[data-them="dark"] h4.display-4.p-0 {
203-
color: black !important;
208+
/* Ensure links are visible */
209+
html[data-theme="dark"] a {
210+
color: #b0c4de;
211+
/* Light blue */
204212
}
205213

214+
/* Target specific elements that need adjustment */
206215
html[data-theme="dark"] .sd-card-body.docutils {
207-
background-color: white;
208-
}
209-
210-
html[data-theme="dark"] .container p {
211-
color: black !important;
216+
background-color: #202020;
217+
/* Darker gray background for cards */
218+
color: #e0e0e0;
219+
/* Light gray text in cards */
220+
}
221+
222+
/* Adjust headings if necessary */
223+
html[data-theme="dark"] h1,
224+
html[data-theme="dark"] h2,
225+
html[data-theme="dark"] h3,
226+
html[data-theme="dark"] h4,
227+
html[data-theme="dark"] h5,
228+
html[data-theme="dark"] h6 {
229+
color: #f5f5f5;
230+
/* Almost white for headings */
212231
}
2.66 MB
Loading
3.2 MB
Loading
2.53 MB
Loading
3.47 MB
Loading

portal/about.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ but instead help you _improve_ it -- and help you to help others do the same!
4141

4242
## Who is Project Pythia?
4343

44-
Pythia is an open and inclusive community! Look [here](index.md#join-us) for info
44+
Pythia is an open and welcoming community! Look [here](index.md#join-us) for info
4545
on how to get involved.
4646

4747
## Project Pythia Goals
@@ -63,10 +63,11 @@ To learn more about Project Pythia and its history, see this list of presentatio
6363

6464
| Forum | Date | Presenter | Format | Title (with link) |
6565
| --- | --- | --- | --- | --- |
66+
| Pangeo Showcase | 2024-10 | Brian Rose | slides | [Project Pythia Cookbooks](https://docs.google.com/presentation/d/1-RS9DviJnOzwlRMNv1786UMYJ8PmQU-ohu0vo51NM0Q/edit?usp=sharing) |
6667
| Ocean Sciences | 2024-02 | Brian Rose | slides | [The Project Pythia Cookbook Initiative](https://docs.google.com/presentation/d/1tvABElX-0CgiuzMfY7XFY-gsXzGUXqWV6k2qJeTw5bk/edit?usp=sharing) |
6768
| AMS | 2024-01 | Drew Camron | slides | [Project Pythia: Three Years of Community Building Through Open Source Technology and Education](https://drive.google.com/file/d/1nZfWWozBKQzVCYpKUqWPX51MEgSAhgfM/view?usp=sharing) |
6869
| AMS | 2024-01 | Kevin Tyle | slides | [Cooking up a Storm with Project Pythia](https://docs.google.com/presentation/d/1zMsoCg1RMHGZDuLLV0QsZB6NwKE7CKo5_8iFAGDGj6o/edit?usp=drive_link) |
69-
| AMS | 2024-01 | Brian Rose | slides | [Project Pythia's vision: Building an Inclusive Geoscience Community through Accessible, Reusable, and Reproducible Workflows](https://docs.google.com/presentation/d/1nG3iJr6Q7_ktKHg6PXzna7DMp4HDiFgS7scqjKLtXNA/edit?usp=sharing) |
70+
| AMS | 2024-01 | Brian Rose | slides | [Project Pythia's vision](https://docs.google.com/presentation/d/1nG3iJr6Q7_ktKHg6PXzna7DMp4HDiFgS7scqjKLtXNA/edit?usp=sharing) |
7071
| AGU | 2023-12 | Brian Rose | slides | [The Project Pythia Cookbook Initiative](https://docs.google.com/presentation/d/1J6wgvypXxYZ4uTQHsquyH_tlY6KiQXBcxb3cwdd3FUM/edit?usp=sharing) |
7172
| AGU | 2023-12 | Julia Kent | slides | [Project Pythia: Empowering Geoscientists through Open-Source, Open-Science Collaboration](https://docs.google.com/presentation/d/1wm0RxaswVh_YJFcYsHduONsYiYNLc69f0XuHnP7Vfh8/edit?usp=sharing) |
7273
| SciPy | 2023-07 | Kevin Tyle / Drew Camron | slides | [Better (Open-source) Homes and Gardens with Project Pythia](https://drive.google.com/file/d/125Wk3TTImHqSYLkgPNsy4_M_w3aENgLr/view?usp=sharing) |

portal/index.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,23 @@
99

1010
<span style="font-size: 2.6rem;">An education and training hub for the geoscientific Python community</span>
1111

12+
<br><br>
13+
14+
<a href="posts/new-cookbooks.html" role="button" class="btn btn-light btn-lg" style="display: flex; align-items: center; font-weight: 600; text-decoration: none; ">
15+
Round-up of new Cookbooks from our 2024 Cook-off hackathon!
16+
</a>
17+
<br>
18+
1219
<a href="posts/fundraiser.html" role="button" class="btn btn-light btn-lg" style="display: flex; align-items: center; font-weight: 600; text-decoration: none; background-color: #ccc; border: rgba(var(--spt-color-dark), 1);">
1320
Donate to support Project Pythia!
1421
</a>
22+
<br>
1523

1624
[Project Pythia](about) is the education working group for [Pangeo](https://pangeo.io)
1725
and is an educational resource for the entire geoscience community.
1826
Together these initiatives are helping geoscientists make sense of huge volumes of
1927
numerical scientific data using tools that facilitate open, reproducible science,
20-
and building an inclusive [community of practice](https://en.wikipedia.org/wiki/Community_of_practice)
28+
and building a [community of practice](https://en.wikipedia.org/wiki/Community_of_practice)
2129
around these goals.
2230

2331
Project Pythia is a home for Python-centered learning resources that are _open-source_,
@@ -211,7 +219,7 @@ The material in Project Pythia is licensed for free and open consumption and reu
211219

212220
To cite this project, please site our [NSF GEO OSE proposal](https://zenodo.org/record/8184298). Individual components of the project may be cited separately.
213221

214-
> Rose, Brian E. J., Clyne, John, May, Ryan, Munroe, James, Snyder, Amelia, Eroglu, Orhan, & Tyle, Kevin. (2023). Collaborative Research: GEO OSE TRACK 2: Project Pythia and Pangeo: Building an inclusive geoscience community through accessible, reusable, and reproducible workflows. Zenodo. https://doi.org/10.5281/zenodo.8184298
222+
> Rose, Brian E. J., Clyne, John, May, Ryan, Munroe, James, Snyder, Amelia, Eroglu, Orhan, & Tyle, Kevin. (2023). Collaborative Research: GEO OSE TRACK 2: Project Pythia and Pangeo. Zenodo. https://doi.org/10.5281/zenodo.8184298
215223
216224
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8184298.svg)](https://doi.org/10.5281/zenodo.8184298)
217225

portal/posts/binderhub_status.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
blogpost: true
3+
date: Jan 20, 2025
4+
author: Kevin Tyle
5+
tags: ["binderhub", "maintenance"]
6+
---
7+
8+
# binder.projectpythia.org Maintenance
9+
10+
Our [BinderHub](https://binder.projectpythia.org) will be offline from **1400 UTC 20 Jan 2025** through **1500 UTC 20 Jan 2025**.
11+
12+
Our [alternate BinderHub](https://binder.pythia.2i2c.cloud) will be available as normal during that time.

portal/posts/fundraiser.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ tags: fundraiser
88
# Donate to Support Project Pythia!
99

1010
## You can make an impact on our community!
11-
By donating to support Project Pythia you are investing in an important educational resource for the entire geoscience community, from students to late career. Project Pythia is an education working group helping geoscientists make sense of huge volumes of numerical scientific data using tools that facilitate open, reproducible science, and building an inclusive community of practice around these goals. Project Pythia is a home for Python-centered learning resources that are open-source, community-owned, geoscience-focused, and high-quality.
11+
By donating to support Project Pythia you are investing in an important educational resource for the entire geoscience community, from students to late career. Project Pythia is an education working group helping geoscientists make sense of huge volumes of numerical scientific data using tools that facilitate open, reproducible science, and building a community of practice around these goals. Project Pythia is a home for Python-centered learning resources that are open-source, community-owned, geoscience-focused, and high-quality.
1212

1313
Donations contribute to outreach and community engagement activities, such as participant support at our annual hackathons.
1414

0 commit comments

Comments
 (0)