Skip to content

Commit bd17a1d

Browse files
authored
Merge pull request #47 from MetaCell/development
June Alpha Release
2 parents 9976561 + d9e32e4 commit bd17a1d

File tree

113 files changed

+6851
-3
lines changed

Some content is hidden

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

113 files changed

+6851
-3
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,7 @@ pygeppetto/
66
org.geppetto.frontend.jupyter/
77
*.ipynb
88
init.py
9-
.idea/
9+
.idea/
10+
netpyne/
11+
*.log
12+
.python-version

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "hnn_ui/geppetto"]
2+
path = hnn_ui/geppetto
3+
url = https://github.com/openworm/org.geppetto.frontend.git
4+
branch = refactor-upgrade-materialui

.travis.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
language: python
2+
os: linux
3+
sudo: false
4+
dist: trusty
5+
bundler_args: --retry 5
6+
node_js:
7+
- "7"
8+
env:
9+
global:
10+
secure: dn0FPQ5IG4M/3kdwnyI78ElQ308Vc3QnKAvkWfwMFb8QxDqxQdnTo7AV1qTMtbLrDNkeEWIgi4nc7jmXNtvGTwOfhAULVh6606Qs5B+ezTdwzajbbFMI8SKQx/pnTojOMu8dx7V4lMoR/YWcojR0VC1IWVC62TGbSB1k5BDGgH0=
11+
before_install:
12+
- sudo apt-get install -y xserver-xorg-dev libxext-dev libxi-dev
13+
install:
14+
- git clone --quiet https://github.com/MetaCell/geppetto-hnn.git
15+
- cd geppetto-hnn
16+
- if [ `git branch -a | egrep "remotes/origin/${TRAVIS_BRANCH}"` ]; then git checkout $TRAVIS_BRANCH ; else echo "Branch $TRAVIS_BRANCH does not exist for the dependent bundle, checking out development ..." && git checkout development; fi
17+
- cd ..
18+
- npm install --silent -g phantomjs
19+
- npm install --silent -g casperjs
20+
- npm install --silent -g slimerjs
21+
- npm install --silent -g gl
22+
python:
23+
- "2.7"
24+
- "3.5"
25+
edge: true
26+
notifications:
27+
slack: metacell:5ALSeoP88DqIhORUJvxE56sq
28+
services:
29+
- docker
30+
addons:
31+
firefox: "58.0"
32+
apt:
33+
packages:
34+
- mesa-utils
35+
- xvfb
36+
- libgl1-mesa-dri
37+
- libglapi-mesa
38+
- libosmesa6
39+
before_script:
40+
- "export DISPLAY=:99.0"
41+
- "sh -e /etc/init.d/xvfb start"
42+
- export SLIMERJSLAUNCHER=/home/travis/firefox-58.0/firefox/firefox
43+
- export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
44+
45+
script:
46+
- travis_wait travis_retry docker build -t="hnn-ui" --build-arg hnnuiBranch=$TRAVIS_BRANCH -f="./Dockerfile_dev" .
47+
- travis_retry docker run -t -dit --name=hnn-ui_container -h localhost -p 8888:8888 hnn-ui:latest
48+
- cd $TRAVIS_BUILD_DIR/ && ls
49+
- cd geppetto-hnn && ls
50+
- cd tests
51+
- bash utilities/hnn-server-status.sh
52+
- sleep 30
53+
- http_status=$(curl -s -I $1 http://localhost:8888/geppetto | grep HTTP/1.1 | awk {'print $2'})
54+
- echo "$http_status"
55+
- while [ "$http_status" == "404" ]; do
56+
echo "Restart run";
57+
echo "Printing logs for debugging purposes";
58+
docker stop $(docker ps -a -q);
59+
docker rm $(docker ps -a -q);
60+
docker run -t -dit --name=hnn-ui_container -h localhost -p 8888:8888 hnn-ui:latest
61+
bash utilities/hnn-server-status.sh
62+
sleep 30;
63+
http_status=$(curl -s -I $1 http://localhost:8888/geppetto | grep HTTP/1.1 | awk {'print $2'})
64+
echo "Done restarting";
65+
echo "$http_status";
66+
done;
67+
- http_status=$(curl -s -I $1 http://localhost:28081 | grep HTTP/1.1 | awk {'print $2'})
68+
- echo "$http_status";
69+
- "curl -s -I $1 http://localhost:8888/geppetto | grep HTTP/1.1 | awk {'print $2'}"
70+
- firefox --version
71+
- travis_retry xvfb-run -a --server-args="-screen 0 1024x768x24" casperjs test hnn-tests.js --host=http://localhost:8888/ --engine=slimerjs
72+
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
73+
- docker logs -t hnn-ui_container
74+
- docker stop $(docker ps -a -q)
75+
- docker rm $(docker ps -a -q)

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# The purpose of this Dockerfile is to serve as skeleton for a future production version.
2+
# Therefore currently it is NOT functional
3+
4+
FROM metacell/jupyter-neuron:latest
5+
USER $NB_USER
6+
7+
ARG hnnuiBranch=development
8+
ENV hnnuiBranch=${hnnuiBranch}
9+
RUN echo "$hnnuiBranch";
10+
11+
ARG INCUBATOR_VER=unknown
12+
RUN /bin/bash -c "INCUBATOR_VER=${INCUBATOR_VER} source activate snakes && pip install netpyne_ui"
13+
RUN /bin/bash -c "source activate snakes && jupyter nbextension enable --py jupyter_geppetto"
14+
RUN /bin/bash -c "source activate snakes && jupyter serverextension enable --py jupyter_geppetto"
15+
RUN /bin/bash -c "source activate snakes && jupyter nbextension enable --py widgetsnbextension"
16+
17+
WORKDIR /home/jovyan/work
18+
RUN wget https://github.com/MetaCell/HNN-UI/archive/$hnnuiBranch.zip -q
19+
RUN unzip $hnnuiBranch.zip
20+
WORKDIR /home/jovyan/work/HNN-UI-$hnnuiBranch/utilities
21+
CMD /bin/bash -c "exec jupyter notebook --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=hnn_ui"

Dockerfile_dev

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM metacell/jupyter-neuron:development
2+
3+
ARG hnnuiBranch=development
4+
5+
RUN echo $hnnuiBranch
6+
7+
# Clone HNN-UI and install the development version
8+
RUN git clone -b $hnnuiBranch https://github.com/MetaCell/HNN-UI &&\
9+
cd HNN-UI/utilities &&\
10+
python install.py
11+
12+
WORKDIR $HOME/HNN-UI
13+
14+
CMD jupyter notebook --debug --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=hnn_ui

HNN-UI

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
exec jupyter notebook --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=hnn_ui

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
# HNN-GUI
1+
# HNN Web User Interface
22

3-
This repository hosts the User Interface for [HNN](https://hnn.brown.edu/). HNN is a user-friendly software tool that gives researchers and clinicians the ability to test and develop hypotheses on the circuit mechanism underlying their EEG/MEG data in an easy-to-use environment.
3+
This repository hosts the web-based user interface for [HNN](https://hnn.brown.edu/). HNN is a user-friendly software tool that gives researchers and clinicians the ability to test and develop hypotheses on the circuit mechanism underlying their EEG/MEG data in an easy-to-use environment.
4+
5+
![](https://raw.githubusercontent.com/MetaCell/HNN-UI/development/docs/wiki6.png)
6+
7+
## [Documentation](https://github.com/MetaCell/HNN-UI/wiki)
8+
9+
## Install HNN User Interface from sources (for developers)
10+
11+
Make sure you have [NEURON installed](https://github.com/MetaCell/NetPyNE-UI/wiki/Installing-NEURON-(version-7.6.2-with-crxd)) and then:
12+
13+
```
14+
git clone https://github.com/MetaCell/HNN-UI
15+
cd utilities
16+
python install.py
17+
cd ..
18+
./HNN-UI
19+
```
420

README.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
2+
New user interface
3+
for `HNN <https://hnn.brown.edu/>`__ based on web
4+
technologies.
5+
6+
7+
The UI connects to
8+
`nrnpython <http://www.neuron.yale.edu/neuron/static/docs/help/neuron/neuron/classes/python.html>`__
9+
through a `Geppetto <http://git.geppetto.org>`__ extension for `Jupyter
10+
Notebook <http://jupyter.org/>`__.
11+
12+
HNN-UI
13+
======
14+
15+
User Interface for HNN.
16+
See the `Repo <https://github.com/MetaCell/HNN-UI>`__
17+
info!
18+
19+
Installation
20+
============
21+
22+
.. code-block:: bash
23+
24+
pip install hnn_ui
25+
jupyter nbextension enable --py jupyter_geppetto
26+
27+
Usage
28+
=====
29+
30+
.. code-block:: bash
31+
32+
HNN-UI
33+
34+
or
35+
36+
.. code-block:: bash
37+
38+
jupyter notebook --NotebookApp.default_url=/geppetto --NotebookApp.token=''
39+
40+

docs/wiki1.png

816 KB
Loading

docs/wiki10.png

1.02 MB
Loading

0 commit comments

Comments
 (0)