Coder Social home page Coder Social logo

satra / neuroviz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neuro-data-science/neuroviz

2.0 5.0 0.0 2.26 MB

A set of notebooks to introduce neuroscientists to concepts in information visualization.

License: Apache License 2.0

Jupyter Notebook 100.00%

neuroviz's Introduction

neuroviz

A set of notebooks to introduce neuroscientists to concepts in information visualization.

To use:

  1. Clone or download this repository
  2. cd into the repository
  3. Call docker:
docker run -it --rm -v /outside_path/to/data/:/data -v $PWD:/home/neuro/test -p 8888:8888 satra/ibro-workshop-2017

  1. inside docker, first download data if you haven't:
cd /data
datalad install -r -g ///workshops/nih-2017/ds000114
cd
  1. start jupyter:
$ jupyter-notebook --ip=*

to start jupyter with Xvfb enabled for the Mayavi notebook do:

$ Xvfb :1 +extension GLX -screen 0 1024x780x24 &
$ DISPLAY=:1 jupyter-notebook --ip=*

the $ represents your shell prompt inside the container.

  1. open the url in a local browser.

To recreate the docker image:

You will first need to download the cifti data and untar it.

curl -L https://www.dropbox.com/s/6povj9s96m0phc7/cifti.tgz?dl=0 | tar zx -

Then generate the Dockerfile

docker run --rm kaczmarj/neurodocker generate -b neurodebian:stretch-non-free -p apt \
--install tree git-annex-standalone vim emacs-nox nano less ncdu tig git-annex-remote-rclone \
--instruction "RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -" \
--install nodejs build-essential \
--instruction "ENV LC_ALL=C.UTF-8" \
--instruction "RUN apt-get update && apt-get install -yq xvfb mesa-utils" \
--user=neuro \
--miniconda python_version=3.6 \
            conda_install="jupyter jupyterlab pandas matplotlib scikit-learn seaborn altair traitsui apptools configobj reprozip reprounzip vtk" \
            env_name="neuro" \
            pip_install="nilearn datalad mayavi" \
--instruction "RUN bash -c \"source activate neuro && pip install --pre --upgrade ipywidgets pythreejs \" " \
--instruction "RUN bash -c \"source activate neuro && pip install  --upgrade https://github.com/maartenbreddels/ipyvolume/archive/23eb91685dfcf200ee82f89ab6f7294f9214db8c.zip && jupyter nbextension install --py --sys-prefix ipyvolume && jupyter nbextension enable --py --sys-prefix ipyvolume \" " \
--instruction "RUN bash -c \"source activate neuro && conda install jupyter_contrib_nbextensions \" " \
--instruction "RUN bash -c \"source activate neuro && pip install --upgrade https://github.com/nipy/nibabel/archive/master.zip \" " \
--instruction "COPY cifti-data /cifti-data" \
--instruction "USER root" \
--instruction "RUN chmod -R a+r /cifti-data " \
--instruction "USER neuro" \
--instruction "RUN bash -c \"source activate neuro && jupyter nbextension enable rubberband/main && jupyter nbextension enable exercise2/main && jupyter nbextension enable spellchecker/main && conda install bokeh scikit-image \" " \
--workdir /home/neuro \
--no-check-urls > Dockerfile

Then build it:

docker build -t mycontainer .

neuroviz's People

Contributors

satra avatar

Stargazers

Wisam Reid avatar John avatar

Watchers

 avatar James Cloos avatar Wisam Reid avatar John avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.