-
Notifications
You must be signed in to change notification settings - Fork 71
Add: events section to website & scipy workshop 2024 #442
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9efdabd
Fix: events page
lwasser 8433af1
Add: event to events page
lwasser ef64924
fix: edits from review
lwasser 6a80e0b
Fix: edits from review
lwasser 44a1ffa
Fix: cleanup layout
lwasser 77fdd8c
Fix: add previous
lwasser e6e694e
Add: fall festival landing and past and future
lwasser ba8fbf3
fix(css): style event cards
lwasser 5dd1d5f
Fix: card cleanup for blog page
lwasser 5f24dfc
feat(css): new card layouts
lwasser bd0b1bc
Feat(events): add styles for event cards
lwasser 6a4a2ff
feat(styles): final styles for events page
lwasser 667f52a
Fix: contributors update
lwasser File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<article class="event-card"> | ||
<a href="{{ post.url | relative_url }}"> | ||
<div class="event-card__content"> | ||
<div class="event-card__date"> | ||
{% if posttime > nowunix %} | ||
<!-- Style upcoming events to be more vibrant --> | ||
<div class="event-card__date-background" style="background-image: linear-gradient(rgba(20, 13, 36, 0.8), rgba(20, 13, 36, 0.8)), url('{{ post.header.overlay_image | relative_url }}');"></div> | ||
{% else %} | ||
<div class="event-card__date-background" style="background-image: url('{{ post.header.overlay_image | relative_url }}');"></div> | ||
{% endif %} | ||
|
||
<div class="event-card__date-text"> | ||
{% assign start_date = post.event.start_date | date: "%d" %} | ||
{% assign end_date = post.event.end_date | date: "%d" %} | ||
{% assign start_month = post.event.start_date | date: "%b" %} | ||
{% assign start_year = post.event.start_date | date: "%Y" %} | ||
{% if end_date and end_date != start_date %} | ||
<span> {{ start_date }}-{{ end_date }}</span> | ||
{% else %} | ||
<span>{{ start_date }}</span> | ||
{% endif %} | ||
<span>{{ start_month }}</span> | ||
<span>{{ start_year }}</span> | ||
</div> | ||
</div> | ||
<div class="event-card__details"> | ||
<h3 class="event-card__title">{{ post.title | markdownify | strip_html }}</h3> | ||
<p>{{ post.excerpt }}</p> | ||
<a href="{{ post.url | relative_url }}" class="event-card__button">Learn More</a> | ||
</div> | ||
</div> | ||
</a> | ||
</article> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
--- | ||
layout: archive | ||
--- | ||
|
||
|
||
{{ content }} | ||
|
||
|
||
<h2>Upcoming events</h2> | ||
|
||
{% assign all_events = site.posts | ||
| where_exp: "item", "item.hidden != true" | ||
| where_exp: "item", "item.categories contains 'events'" | ||
%} | ||
|
||
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %} | ||
|
||
{% for post in all_events %} | ||
|
||
{% assign start_date = post.event.start_date | date: "%Y-%m-%d" %} | ||
{% capture posttime %}{{ start_date | date: '%s'}}{% endcapture %} | ||
|
||
{% if posttime > nowunix %} | ||
<div class="upcoming"> | ||
{% include event-cards.html %} | ||
</div> | ||
{% endif %} | ||
|
||
{% endfor %} | ||
|
||
|
||
<h2>Past events</h2> | ||
|
||
<ul class="taxonomy__index"> | ||
{% assign eventsInYear = site.posts | ||
| where_exp: "item", "item.hidden != true" | ||
| where_exp: "item", "item.categories contains 'events'" | ||
| group_by_exp: 'post', 'post.event.start_date | date: "%Y"' | ||
%} | ||
{% for year in eventsInYear %} | ||
|
||
<li> | ||
<a href="#{{ year.name }}"> | ||
<strong>{{ year.name }}</strong> <!--<span class="taxonomy__count">{{ year.items | size }}</span> --> | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
|
||
{% assign entries_layout = page.entries_layout | default: 'list' %} | ||
{% assign eventsByYear = site.posts | ||
| where_exp: "item", "item.hidden != true" | ||
| where_exp: "item", "item.categories contains 'events'" | ||
| group_by_exp: 'post', 'post.event.start_date | date: "%Y"' | ||
%} | ||
|
||
{% for year in eventsByYear %} | ||
<section id="{{ year.name }}" class="taxonomy__section"> | ||
<h2 class="archive__subtitle">{{ year.name }}</h2> | ||
<div class="event__grid"> | ||
{% for post in year.items %} | ||
{% capture posttime %}{{ post.event.start_date | date: '%s'}}{% endcapture %} | ||
{% if posttime < nowunix %} | ||
{% include event-cards.html %} | ||
{% endif %} | ||
{% endfor %} | ||
</div> | ||
<a href="#page-title" class="back-to-top">{{ site.data.ui-text[site.locale].back_to_top | default: 'Back to Top' }} ↑</a> | ||
</section> | ||
{% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
layout: posts_events | ||
permalink: /events/ | ||
classes: wide | ||
title: "pyOpenSci Events" | ||
excerpt: "pyOpenSci holds events that support scientists developing open science skills." | ||
header: | ||
overlay_image: images/headers/scipy-2024-workshop.png | ||
overlay_filter: rgba(20, 13, 36, 0.8) | ||
author_profile: false | ||
--- | ||
|
||
pyOpenSci runs free and paid training events that teach skills that scientists need | ||
to make their science more open and collaborative. |
55 changes: 55 additions & 0 deletions
55
...events/2024-04-29-create-your-first-python-package-pyopensci-online-workshop.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
layout: single | ||
title: "pyOpenSci Online Workshop: Create your first Python package" | ||
excerpt: "Python packaging can be tricky to navigate. pyOpenSci will lead a pilot workshop on creating your first Python package. The goal of this workshop is to help scientists learn how to package and make code installable and shareable. Read on to learn more!" | ||
event: | ||
start_date: 2024-04-29 | ||
cost: 10$ | ||
location: Online | ||
permalink: /events/april-2024-create-python-package-pyopensci-online-workshop.html | ||
header: | ||
overlay_image: images/headers/scipy-2024-workshop.png | ||
overlay_filter: rgba(20, 13, 36, 0.8) | ||
categories: | ||
- events | ||
start_date: 2024-04-29 | ||
classes: wide | ||
type: "event" | ||
comments: true | ||
--- | ||
|
||
## Create your first Python package: make your Python code easier to share and use | ||
|
||
* **What:** A hands-on workshop, titled: [Create Your First Python Package: Make Your Python Code Easier to Share and Use](https://cfp.scipy.org/2024/talk/QT9GBY/) | ||
* **Where:** [SciPy 2024](https://www.scipy2024.scipy.org/), Ballroom B/C | ||
* **When:** Tuesday, July 9th, 2024, from 13:30--17:30 Pacific | ||
* Resources: | ||
* [**Workshop GitHub repository:**](https://github.com/pyOpenSci/code-to-module-workshop/) | ||
* [**pyOpenSci demo package:**](https://github.com/pyOpenSci/pyosPackage) | ||
|
||
## Event overview | ||
|
||
## How to enroll | ||
<figure> | ||
<a href="/images/blog/2024/april/pyos-code-to-mod.png"> | ||
<img src="/images/blog/2024/april/pyos-code-to-mod.png" style="max-width:100%" alt="A line art robot standing in a field of purple flowers. The text reads 'From Python Code to Module, a live, online workshop with pyOpenSci, Thursday, April 25th 2024'."> | ||
</a> | ||
<figcaption> | ||
Tickets for our "From Python Code to Module" workshop are selling fast - get yours today! | ||
</figcaption> | ||
</figure> | ||
|
||
If you’re interested in participating in our first paid, online, real-time training, sign up for our upcoming workshop: [“From Python Code to Module”](https://www.eventbrite.com/e/879586546037?aff=oddtdtcreator). This three hour course is intended for individuals who have experience writing Python code and Python functions, and will be taught by pyOpenSci’s Executive Director and founder, [Leah Wasser](https://github.com/lwasser). Leah has over 20 years of experience teaching data-intensive science with an emphasis helping scientists work through the pain points of working with different types of data, and puts an incredible amount of care and attention into ensuring each learner is successful in their educational goals. This is definitely a workshop you don’t want to miss! | ||
|
||
In this workshop, Leah will cover: | ||
|
||
- How to identify and explain the use of the basic components of a Python package: (a specific directory structure, an __init__.py file, a pyroject.toml file and some code). | ||
- Creating a basic python package that allows you to install your code into a local Python environment. | ||
- Installing your package in editable mode into a Python environment. | ||
|
||
She will also briefly discuss how LLM’s can be used to support tasks such as documenting and formatting your code to improve usability and maintainability. While also considering the ethical and logistical challenges, pitfalls and concerns associated with using AI-based tools in software development. | ||
|
||
The course will take place on Thursday, April 25th, from 10AM–1PM Mountain time, and use the Spatial Chat platform. Tickets are $10, and can be purchased on [the workshop’s Eventbrite page](https://www.eventbrite.com/e/from-python-code-to-module-tickets-879586546037?aff=oddtdtcreator). The class size is capped at 35, and tickets are selling fast–we hope to see you there! | ||
|
||
## Connect with us! | ||
You can stay up-to-date with all things pyOpenSci by following us on [LinkedIn](https://www.linkedin.com/company/pyopensci) and [Fosstodon](https://fosstodon.org/@pyOpenSci), and you can connect with the broader pyOpenSci community on [our Discourse forum](https://pyopensci.discourse.group/). And if you’re interested in our weekly newsletter where we share news, blog posts, and monthly updates, [subscribe on LinkedIn](https://www.linkedin.com/newsletters/pyopensci-newsletter-7179551305344933888!) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete exuberance (breaking change) <3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sneakers-the-rat best review comment ever.