Skip to content

Commit f5f7d51

Browse files
committed
Added two new notebooks + added respective CIs and updated README
1 parent f11c37c commit f5f7d51

File tree

3 files changed

+69
-3
lines changed

3 files changed

+69
-3
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: mortality_temporal_age
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
10+
workflow_dispatch:
11+
12+
jobs:
13+
notebooks:
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Set up Python 3.8
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.8
21+
22+
- name: Install dependencies
23+
run: pip install jupyter nbconvert nbformat
24+
25+
- name: Launch notebook
26+
run: jupyter nbconvert --to notebook --execute apps/bc_mortality_over_time_age_groups.ipynb --ExecutePreprocessor.kernel_name='python3' --output ../notebook_executed
27+
28+
- name: Upload artifact
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: notebook
32+
path: notebook_executed.ipynb
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: incidence_temporal_age
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
pull_request:
8+
branches:
9+
- '*'
10+
workflow_dispatch:
11+
12+
jobs:
13+
notebooks:
14+
runs-on: ubuntu-20.04
15+
steps:
16+
- uses: actions/checkout@v1
17+
- name: Set up Python 3.8
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.8
21+
22+
- name: Install dependencies
23+
run: pip install jupyter nbconvert nbformat
24+
25+
- name: Launch notebook
26+
run: jupyter nbconvert --to notebook --execute apps/bc_incidence_over_time_age_groups.ipynb --ExecutePreprocessor.kernel_name='python3' --output ../notebook_executed
27+
28+
- name: Upload artifact
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: notebook
32+
path: notebook_executed.ipynb

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ They can also be accessed by clicking their respective CoLab badge below:
2626
| Survival country comparison | <a href="https://colab.research.google.com/github/andreped/breast-cancer-stats/blob/main/apps/bc_survival.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> | <a href="https://github.com/andreped/breast-cancer-stats/actions/workflows/survival.yml" target="_parent"><img src="https://github.com/andreped/breast-cancer-stats/workflows/survival/badge.svg" alt="Open In Colab"/></a> |
2727
| Cancer incidence over time | <a href="https://colab.research.google.com/github/andreped/breast-cancer-stats/blob/main/apps/bc_incidence_over_time.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> | <a href="https://github.com/andreped/breast-cancer-stats/actions/workflows/incidence_temporal.yml" target="_parent"><img src="https://github.com/andreped/breast-cancer-stats/workflows/incidence_temporal/badge.svg" alt="Open In Colab"/></a> |
2828
| Cancer mortality over time | <a href="https://colab.research.google.com/github/andreped/breast-cancer-stats/blob/main/apps/bc_mortality_over_time.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> | <a href="https://github.com/andreped/breast-cancer-stats/actions/workflows/mortality_temporal.yml" target="_parent"><img src="https://github.com/andreped/breast-cancer-stats/workflows/mortality_temporal/badge.svg" alt="Open In Colab"/></a> |
29+
| Cancer incidence over time w.r.t age | <a href="https://colab.research.google.com/github/andreped/breast-cancer-stats/blob/main/apps/bc_incidence_over_time_age_groups.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> | <a href="https://github.com/andreped/breast-cancer-stats/actions/workflows/incidence_temporal_age.yml" target="_parent"><img src="https://github.com/andreped/breast-cancer-stats/workflows/incidence_temporal_age/badge.svg" alt="Open In Colab"/></a> |
30+
| Cancer mortality over time w.r.t age | <a href="https://colab.research.google.com/github/andreped/breast-cancer-stats/blob/main/apps/bc_mortality_over_time_age_groups.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a> | <a href="https://github.com/andreped/breast-cancer-stats/actions/workflows/mortality_temporal_age.yml" target="_parent"><img src="https://github.com/andreped/breast-cancer-stats/workflows/mortality_temporal_age/badge.svg" alt="Open In Colab"/></a> |
2931

3032
## [Dependencies](https://github.com/andreped/breast-cancer-stats#dependencies)
3133

@@ -42,9 +44,9 @@ The following dependencies were used and are installed as part of the notebooks:
4244

4345
## [Troubleshooting](https://github.com/andreped/breast-cancer-stats#troubleshooting)
4446

45-
If you attempt to run the notebooks locally or view them from GitHub, the resulting image may not be displayed.
46-
This is due to the renderer in Plotly's `show()` method being set to `show(renderer="colab")`.
47-
By removing the specification of renderer or choosing an appropriate renderer, the resulting image should be shown in the notebook.
47+
Note that all renderered results could be interactive, but we have set Plotly's `show(renderer="png")`,
48+
to enable the result to be shown in the output on CoLab, on GitHub, and locally. To get interactive
49+
figures on CoLab set `show(renderer="colab")`, or locally use the default `show()`.
4850

4951
## [License](https://github.com/andreped/breast-cancer-stats#license)
5052

0 commit comments

Comments
 (0)