Skip to content

Commit cebb22d

Browse files
LuisHeinzlmeierLuisZethson
authored
Add env- and lamin-setup dropdown to all chapters with make dropdown (#348)
* python script and md for inserting dropdowns * make works with python script * add anchors to every chapter * correct Makefile * rename yml files * take section yml if local one does not exist * also go through markdown * adding anchors to markdown * stop printing * add preprocessing.yml * clean up code * only one file for build env * Update scripts/insert_yml.py Co-authored-by: Lukas Heumos <lukas.heumos@posteo.net> * add make dropdown to the CI * improvements to my code * get_index_in_cell error resolved * added all comments from Lukas (raising error, private function, ...) * also process lamin anchors * adding lamin setup dropdown bug fixed and rename python script * adding lamin anchors to pseudotemporal * add changelog * delete content between env-setup anchors * final improvements of coding style --------- Co-authored-by: Luis <ge34lah@mytum.de> Co-authored-by: Lukas Heumos <lukas.heumos@posteo.net>
1 parent 3e2c95f commit cebb22d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+759
-1126
lines changed

.github/workflows/build_book.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
v1-${{ github.ref }}
3636
v1-refs/heads/master
3737
38+
- name: Insert env-setup dropdown to all chapters
39+
run: make dropdown
40+
3841
- name: Build the JupyterBook
3942
run: make
4043

.github/workflows/build_environments.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
environments:
1111
[
1212
"jupyter-book/introduction/analysis_tools.yml",
13-
"jupyter-book/preprocessing_visualization/preprocessing.yml",
13+
"jupyter-book/preprocessing_visualization/preprocessing_visualization.yml",
1414
"jupyter-book/cellular_structure/clustering.yml",
1515
"jupyter-book/cellular_structure/annotation.yml",
1616
"jupyter-book/cellular_structure/integration.yml",

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ JUPYTER_KERNEL := python3
44
build:
55
jupyter-book build $(JUPYTER_BOOK_DIR)
66

7+
dropdown:
8+
python3 scripts/insert_dropdown.py
9+
710
clean:
811
jupyter-book clean --all $(JUPYTER_BOOK_DIR)
912

changelog.d/348.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add env- and lamin-setup dropdown with `make dropdown`

jupyter-book/air_repertoire/clonotype.ipynb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,8 @@
3333
"\n",
3434
"```\n",
3535
"\n",
36-
"``````{dropdown} <i class=\"fa-solid fa-gear\"></i>&nbsp;&nbsp;&nbsp;Environment setup\n",
37-
"`````{tab-set}\n",
38-
" \n",
39-
"````{tab-item} Steps\n",
40-
"```{include} ../_static/default_text_env_setup.md\n",
41-
"```\n",
42-
"````\n",
43-
"\n",
44-
"````{tab-item} yml\n",
45-
"```{literalinclude} compositional.yml\n",
46-
":language: yaml\n",
47-
"```\n",
48-
"````\n",
49-
"\n",
50-
"`````\n",
51-
"``````"
36+
"<!-- START ENV-SETUP -->\n",
37+
"<!-- END ENV-SETUP -->"
5238
]
5339
},
5440
{

jupyter-book/air_repertoire/ir_profiling.ipynb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,8 @@
3535
"\n",
3636
"```\n",
3737
"\n",
38-
"``````{dropdown} <i class=\"fa-solid fa-gear\"></i>&nbsp;&nbsp;&nbsp;Environment setup\n",
39-
"`````{tab-set}\n",
40-
" \n",
41-
"````{tab-item} Steps\n",
42-
"```{include} ../_static/default_text_env_setup.md\n",
43-
"```\n",
44-
"````\n",
45-
"\n",
46-
"````{tab-item} yml\n",
47-
"```{literalinclude} compositional.yml\n",
48-
":language: yaml\n",
49-
"```\n",
50-
"````\n",
51-
"\n",
52-
"`````\n",
53-
"``````"
38+
"<!-- START ENV-SETUP -->\n",
39+
"<!-- END ENV-SETUP -->"
5440
]
5541
},
5642
{

jupyter-book/air_repertoire/multimodal_integration.ipynb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,8 @@
3838
"\n",
3939
"```\n",
4040
"\n",
41-
"``````{dropdown} <i class=\"fa-solid fa-gear\"></i>&nbsp;&nbsp;&nbsp;Environment setup\n",
42-
"`````{tab-set}\n",
43-
" \n",
44-
"````{tab-item} Steps\n",
45-
"```{include} ../_static/default_text_env_setup.md\n",
46-
"```\n",
47-
"````\n",
48-
"\n",
49-
"````{tab-item} yml\n",
50-
"```{literalinclude} compositional.yml\n",
51-
":language: yaml\n",
52-
"```\n",
53-
"````\n",
54-
"\n",
55-
"`````\n",
56-
"``````"
41+
"<!-- START ENV-SETUP -->\n",
42+
"<!-- END ENV-SETUP -->"
5743
]
5844
},
5945
{

jupyter-book/air_repertoire/specificity.ipynb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,8 @@
3737
"\n",
3838
"```\n",
3939
"\n",
40-
"``````{dropdown} <i class=\"fa-solid fa-gear\"></i>&nbsp;&nbsp;&nbsp;Environment setup\n",
41-
"`````{tab-set}\n",
42-
" \n",
43-
"````{tab-item} Steps\n",
44-
"```{include} ../_static/default_text_env_setup.md\n",
45-
"```\n",
46-
"````\n",
47-
"\n",
48-
"````{tab-item} yml\n",
49-
"```{literalinclude} compositional.yml\n",
50-
":language: yaml\n",
51-
"```\n",
52-
"````\n",
53-
"\n",
54-
"`````\n",
55-
"``````"
40+
"<!-- START ENV-SETUP -->\n",
41+
"<!-- END ENV-SETUP -->"
5642
]
5743
},
5844
{

jupyter-book/cellular_structure/annotation.ipynb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,8 @@
3636
"\n",
3737
"```\n",
3838
"\n",
39-
"``````{dropdown} <i class=\"fa-solid fa-gear\"></i>&nbsp;&nbsp;&nbsp;Environment setup\n",
40-
"`````{tab-set}\n",
41-
" \n",
42-
"````{tab-item} Steps\n",
43-
"```{include} ../_static/default_text_env_setup.md\n",
44-
"```\n",
45-
"````\n",
46-
"\n",
47-
"````{tab-item} yml\n",
48-
"```{literalinclude} annotation.yml\n",
49-
":language: yaml\n",
50-
"```\n",
51-
"````\n",
52-
"\n",
53-
"`````\n",
54-
"``````"
39+
"<!-- START ENV-SETUP -->\n",
40+
"<!-- END ENV-SETUP -->"
5541
]
5642
},
5743
{

jupyter-book/cellular_structure/clustering.ipynb

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,8 @@
3030
"\n",
3131
"```\n",
3232
"\n",
33-
"``````{dropdown} <i class=\"fa-solid fa-gear\"></i>&nbsp;&nbsp;&nbsp;Environment setup\n",
34-
"`````{tab-set}\n",
35-
" \n",
36-
"````{tab-item} Steps\n",
37-
"```{include} ../_static/default_text_env_setup.md\n",
38-
"```\n",
39-
"````\n",
40-
"\n",
41-
"````{tab-item} yml\n",
42-
"```{literalinclude} clustering.yml\n",
43-
":language: yaml\n",
44-
"```\n",
45-
"````\n",
46-
"\n",
47-
"`````\n",
48-
"``````"
33+
"<!-- START ENV-SETUP -->\n",
34+
"<!-- END ENV-SETUP -->"
4935
]
5036
},
5137
{

0 commit comments

Comments
 (0)