Skip to content

Commit 34c9601

Browse files
authored
Merge pull request #519 from predictive-clinical-neuroscience/contsili/refactor_transfer_extend_tutorials
enh - add transfer pretrained model tutorial enh - refactor transfer and extend tutorial fix - recompute the list of batch effects even if one already exists
2 parents 2bdbf9a + 4e1901a commit 34c9601

34 files changed

Lines changed: 1536 additions & 2794 deletions

doc/convert_notebooks.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
os.path.join(os.path.dirname(__file__), "tutorials")
1515
)
1616

17+
# Notebooks that are not ready for the website. Names are without the
18+
# ".ipynb" extension.
19+
SKIP_NOTEBOOKS = {
20+
"14_longitudinal_modelling",
21+
}
22+
1723
os.makedirs(TUTORIALS_DIR, exist_ok=True)
1824

1925

@@ -42,6 +48,10 @@ def convert_notebooks() -> None:
4248
# Derive the rst filename from the notebook name
4349
nb_name = os.path.splitext(os.path.basename(nb_path))[0]
4450

51+
if nb_name in SKIP_NOTEBOOKS:
52+
print(f"Skipping {nb_name}")
53+
continue
54+
4555
subprocess.run(
4656
[
4757
sys.executable, # resolve "jupyter" from the virtual

0 commit comments

Comments
 (0)