Skip to content

Commit

Permalink
Notebook example
Browse files Browse the repository at this point in the history
  • Loading branch information
gllmflndn committed Mar 15, 2019
0 parents commit 968edb1
Show file tree
Hide file tree
Showing 7 changed files with 200 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SPM Notebooks

## MATLAB Live Editor

Allows you to create scripts that combine code, output, and formatted text in an executable notebook.

https://www.mathworks.com/products/matlab/live-editor.html

## Jupyter

See [Jupyter Notebook](https://jupyter-notebook.readthedocs.io/en/stable/), [NBviewer](https://nbviewer.jupyter.org/) and [JupyterLab](https://jupyterlab.readthedocs.io/en/latest/).

Jupyter kernels: [MATLAB](https://github.com/Calysto/matlab_kernel) and [Octave](https://github.com/Calysto/octave_kernel).

Jupyter notebooks can be opened in an online executable environment with [Binder](https://mybinder.org/).

### Example

[SPM notebook example](https://github.com/spm/spm-notebooks/blob/master/index.ipynb) rendered statically with [NBviewer](https://nbviewer.jupyter.org/github/spm/spm-notebooks/blob/master/index.ipynb) and interactively with [Binder](https://mybinder.org/v2/gh/spm/spm-notebooks/master).

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/gllmflndn/binder/master?filepath=index.ipynb)
5 changes: 5 additions & 0 deletions binder/apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
curl
octave
liboctave-dev
gnuplot
ghostscript
2 changes: 2 additions & 0 deletions binder/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dependencies:
- octave_kernel
6 changes: 6 additions & 0 deletions binder/postBuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mkdir ${HOME}/spm12 && curl -SL https://github.com/spm/spm12/archive/r7487.tar.gz | tar -xzC ${HOME}/spm12 --strip-components 1
cd ${HOME}/spm12/src
make PLATFORM=octave
make PLATFORM=octave install
cd ${HOME}
octave --no-gui --eval "addpath (fullfile (getenv (\"HOME\"), \"spm12\")); savepath ();"
Binary file added data/T1w.nii
Binary file not shown.
Binary file added data/bold.nii
Binary file not shown.
166 changes: 166 additions & 0 deletions index.ipynb

Large diffs are not rendered by default.

0 comments on commit 968edb1

Please sign in to comment.