Skip to content

Commit aaba874

Browse files
authored
REF,ENH Use jupyter-book for the rendered website (#40)
* ENH start setting up jupyter-book * Continue with conversion * Update tutorials * Update all notebooks * Remove scripts * Rename static assets * Update readme * Test tutorials using jupyter-book * FIX codespell * Update * Add makefile to push pages * Organize book files * Update makefile * FIX avoid warning with nans * Clean up repository and add readme * Add preview to makefile and fix readme * update readme * Add merged notebooks * Fix 3d flatmap * FIX reference [skip ci]
1 parent 89c4c6a commit aaba874

Some content is hidden

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

59 files changed

+3189
-4256
lines changed

.github/workflows/run_tutorials.yml

+2-8
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
pip install -U wheel
4141
# install himalaya from source to get early testing
4242
pip install git+https://github.com/gallantlab/himalaya.git
43-
pip install -e ."[github]"
43+
pip install -e ."[docs,github]"
4444
# use neurodebian installer for travis
4545
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
4646
sudo apt-get update -qq
@@ -55,10 +55,4 @@ jobs:
5555
- name: Run some tutorials
5656
run: |
5757
# run tutorials with a shortcut option to skip model fitting
58-
HIMALAYA_SKIP_FIT=True python tutorials/shortclips/00_download_shortclips.py
59-
HIMALAYA_SKIP_FIT=True python tutorials/shortclips/01_plot_explainable_variance.py
60-
HIMALAYA_SKIP_FIT=True python tutorials/shortclips/02_plot_ridge_regression.py
61-
HIMALAYA_SKIP_FIT=True python tutorials/shortclips/03_plot_wordnet_model.py
62-
HIMALAYA_SKIP_FIT=True python tutorials/shortclips/04_plot_hemodynamic_response.py
63-
HIMALAYA_SKIP_FIT=True python tutorials/shortclips/05_plot_motion_energy_model.py
64-
HIMALAYA_SKIP_FIT=True python tutorials/shortclips/06_plot_banded_ridge_model.py
58+
HIMALAYA_SKIP_FIT=True jupyter-book build tutorials

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ dist/
1212
# Documentation build
1313
doc/_build/
1414
doc/_auto_examples/
15+
tutorials/_build

README.rst

+7-2
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,19 @@ To explore these tutorials, one can:
2929

3030
- read the rendered examples in the tutorials
3131
`website <https://gallantlab.github.io/voxelwise_tutorials/>`_ (recommended)
32-
- run the Python scripts (`tutorials <tutorials>`_ directory)
33-
- run the Jupyter notebooks (`tutorials/notebooks <tutorials/notebooks>`_ directory)
3432
- run the merged notebook in
3533
`Colab <https://colab.research.google.com/github/gallantlab/voxelwise_tutorials/blob/main/tutorials/notebooks/shortclips/merged_for_colab.ipynb>`_.
34+
- run the Jupyter notebooks (`tutorials/notebooks <tutorials/notebooks>`_ directory) locally
3635

3736
The tutorials are best explored in order, starting with the "Shortclips"
3837
tutorial.
3938

39+
Dockerfiles
40+
===========
41+
This repository contains Dockerfiles to run the tutorials locally. Please see the
42+
instructions in the `docker <docker>`_ directory.
43+
44+
4045
Helper Python package
4146
=====================
4247

doc/README.md

-42
This file was deleted.

doc/conf.py

-196
This file was deleted.

doc/create_notebooks.py

-26
This file was deleted.

doc/index.rst

-67
This file was deleted.

0 commit comments

Comments
 (0)