Skip to content

Commit 71e415c

Browse files
Merge pull request #82 from VincentRouvreau/fix_alpha_visualization
ipywidgets requires to be installed in requirements
2 parents da91753 + 603405f commit 71e415c

12 files changed

+504
-6377
lines changed

.binder/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ gudhi>=3.9.0 # Tuto-GUDHI-cover-complex.ipynb requires sklearn interfaces
1212
torch
1313
tqdm
1414
eagerpy
15+
ipywidgets
16+
anywidget

.github/workflows/test_notebooks.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,22 @@ on: [push, pull_request]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
98
steps:
10-
- uses: actions/checkout@v2
11-
- name: Set up Python 3.8
12-
uses: actions/setup-python@v2
13-
with:
14-
python-version: 3.8
15-
- name: Install LaTeX support for matplotlib
16-
run: |
17-
sudo apt update
18-
sudo apt install -y ghostscript dvipng texlive-full
19-
- name: Install Python dependencies
20-
run: |
21-
python -m pip install --upgrade pip
22-
pip install -r .binder/requirements.txt
23-
pip install jupyter
24-
- name: Execute notebooks
25-
run: |
26-
for f in *.ipynb; do echo "Processing $f file.."; time jupyter nbconvert --to notebook --ExecutePreprocessor.timeout=600 --inplace --execute $f;done;
9+
- uses: actions/checkout@v2
10+
- name: Set up Python 3.11
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: 3.11
14+
- name: Install LaTeX support for matplotlib
15+
run: |
16+
sudo apt update
17+
sudo apt install -y ghostscript dvipng texlive-full
18+
- name: Install Python dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install -r .binder/requirements.txt
22+
pip install jupyter
23+
- name: Execute notebooks
24+
run: |
25+
for f in *.ipynb; do echo "Processing $f file.."; time jupyter nbconvert --TagRemovePreprocessor.enabled=True --TagRemovePreprocessor.remove_cell_tags="['do_not_execute']" --to notebook --ExecutePreprocessor.timeout=600 --inplace --execute $f;done;

Tuto-GUDHI-Barycenters-of-persistence-diagrams.ipynb

Lines changed: 28 additions & 39 deletions
Large diffs are not rendered by default.

Tuto-GUDHI-Expected-persistence-diagrams.ipynb

Lines changed: 17 additions & 32 deletions
Large diffs are not rendered by default.

Tuto-GUDHI-Quantization-of-persistence-diagrams.ipynb

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"metadata": {},
5+
"metadata": {
6+
"editable": true,
7+
"slideshow": {
8+
"slide_type": ""
9+
},
10+
"tags": []
11+
},
612
"source": [
713
"# Quantization of (expected) Persistence Diagram"
814
]
@@ -34,23 +40,13 @@
3440
},
3541
{
3642
"cell_type": "markdown",
37-
"metadata": {},
38-
"source": [
39-
"### Notebook global settings"
40-
]
41-
},
42-
{
43-
"cell_type": "code",
44-
"execution_count": 1,
45-
"metadata": {},
46-
"outputs": [],
47-
"source": [
48-
"%matplotlib inline"
49-
]
50-
},
51-
{
52-
"cell_type": "markdown",
53-
"metadata": {},
43+
"metadata": {
44+
"editable": true,
45+
"slideshow": {
46+
"slide_type": ""
47+
},
48+
"tags": []
49+
},
5450
"source": [
5551
"## Motivation and mathematical formulation"
5652
]
@@ -241,7 +237,13 @@
241237
{
242238
"cell_type": "code",
243239
"execution_count": 7,
244-
"metadata": {},
240+
"metadata": {
241+
"editable": true,
242+
"slideshow": {
243+
"slide_type": ""
244+
},
245+
"tags": []
246+
},
245247
"outputs": [],
246248
"source": [
247249
"n = len(diags)\n",
@@ -298,7 +300,7 @@
298300
],
299301
"metadata": {
300302
"kernelspec": {
301-
"display_name": "Python 3",
303+
"display_name": "Python 3 (ipykernel)",
302304
"language": "python",
303305
"name": "python3"
304306
},
@@ -312,7 +314,7 @@
312314
"name": "python",
313315
"nbconvert_exporter": "python",
314316
"pygments_lexer": "ipython3",
315-
"version": "3.8.2"
317+
"version": "3.11.0"
316318
}
317319
},
318320
"nbformat": 4,

Tuto-GUDHI-alpha-complex-visualization.ipynb

Lines changed: 33 additions & 82 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)