Skip to content

Commit 0492657

Browse files
committed
clean up directory
1 parent 49242da commit 0492657

7 files changed

Lines changed: 20 additions & 14 deletions

File tree

spikeinterface/Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,15 @@ RUN conda update -y conda && \
2727
conda install -y pip
2828

2929
# Conda installs
30-
RUN conda config --set channel_priority flexible && \
31-
conda install -y -c conda-forge nb_conda_kernels \
32-
jupyter_contrib_nbextensions \
30+
# RUN conda config --set channel_priority flexible && \
31+
RUN conda install -y -c conda-forge \
32+
nb_conda_kernels \
3333
jupyterlab-git \
3434
pynwb && \
35-
conda clean -tipsy
35+
conda clean -tipy
36+
37+
# Install jupyter_contrib_nbextensions with pip (conda install has major conflicts)
38+
RUN pip install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master
3639

3740
# Create environment
3841
RUN ln -s /srv/spikeinterface /home/$NB_USER/
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
### How to run the spikeinterface container
3-
**Method 1: drag and drop** (Windows only)
4-
Drag and drop the data folder on either `.bat` file. For convenience, create a shortcut and put it on your desktop.
3+
**Method 1: drag and drop** (Windows only for now)
4+
Drag and drop the data folder on either `.bat` file (see `launch_scripts` folder). For convenience, create a shortcut and put it on your desktop.
55

6-
![Drag and Drop](DragAndDropDemo.gif)
6+
![Drag and Drop](images/DragAndDropDemo.gif)
77

88
Which launch script should you pick?
99
`SpikeInterface_OneOff.bat` will start a on-off sesssion. The container will self-destroy upon shutdown (not just closing the tab though). If the tab is closed, go back to your session at this address: http://localhost:8888/lab?token=mytoken.
@@ -18,13 +18,13 @@ Files can be downloaded with right-click > download.
1818
2. Start the container
1919
*On Linux/MacOS*
2020
`export JUPYTER_TOKEN='mytoken'`
21-
`docker run -d --rm --name spikeinterface -v "${PWD}":/home/jovyan/data -p 8888:8888 -e JUPYTER_TOKEN wanglabneuro/spikeinterface:0.2`
21+
`docker run -d --rm --name spikeinterface -v "${PWD}":/home/jovyan/data -p 8888:8888 -e JUPYTER_TOKEN spikeinterface/spikeinterface:0.2`
2222
*On Windows*
2323
`set JUPYTER_TOKEN=mytoken`
24-
`docker run -d --rm --name spikeinterface -v "%CD%":/home/jovyan/data -p 8888:8888 -e JUPYTER_TOKEN wanglabneuro/spikeinterface:0.2`
24+
`docker run -d --rm --name spikeinterface -v "%CD%":/home/jovyan/data -p 8888:8888 -e JUPYTER_TOKEN spikeinterface/spikeinterface:0.2`
2525

2626
* Replace "mytoken" by some other word.
27-
* If you built the image (see below), remove `wanglabneuro` or replace it with your docker handle.
27+
* If you built the image (see below), remove `spikeinterface/` or replace it with your docker handle.
2828

2929
3. Then open http://localhost:8888/lab?token=mytoken in a browser.
3030

@@ -35,7 +35,7 @@ The `--rm` flag means the container is a on-off (will self-destroy upon closure)
3535
To make the container persitant, remove the `--rm flag` from the docker call. In which case, the container will persist. To start a stopped container, run `docker start spikeinterface` in a terminal, or use the Docker Desktop interface to start it.
3636

3737
### How to build this image
38-
The container image is [available on DockerHub](https://hub.docker.com/repository/docker/wanglabneuro/spikeinterface/). Providing you have Docker installed, it will automatically download when starting the container.
38+
The container image is [available on DockerHub](https://hub.docker.com/repository/docker/spikeinterface/spikeinterface/). Providing you have Docker installed, it will automatically download when starting the container.
3939

4040
If you want to build it, follow the instructions below.
4141
Open a terminal, navigate to the spikeinterface directory, then run:

spikeinterface/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
docker build -t wanglabneuro/spikeinterface:0.1 .
3+
docker build -t spikeinterface/spikeinterface:0.2 .

spikeinterface/SpikeInterface_OneOff.bat renamed to spikeinterface/launch_scripts/SpikeInterface_OneOff.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Title Drag and drop a data folder
33
Mode con cols=60 lines=3
44
IF [%1] EQU [] Goto:Error
55
set JUPYTER_TOKEN=mytoken
6-
docker run -d --rm --name spikeinterface -v "%~1":/home/jovyan/data -p 8888:8888 -e JUPYTER_TOKEN wanglabneuro/spikeinterface:0.2
6+
docker run -d --rm --name spikeinterface -v "%~1":/home/jovyan/data -p 8888:8888 -e JUPYTER_TOKEN spikeinterface/spikeinterface:0.2
77
TIMEOUT /T 2
88
START /W "" http://localhost:8888/lab?token=mytoken
99
ECHO Spike Interface started

spikeinterface/SpikeInterface_Persist.bat renamed to spikeinterface/launch_scripts/SpikeInterface_Persist.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Title Drag and drop a data folder
33
Mode con cols=60 lines=3
44
IF [%1] EQU [] Goto:Error
55
set JUPYTER_TOKEN=mytoken
6-
docker run -d --rm --name spikeinterface -v "%~1":/home/jovyan/data -p 8888:8888 -e JUPYTER_TOKEN wanglabneuro/spikeinterface:0.2
6+
docker run -d --rm --name spikeinterface -v "%~1":/home/jovyan/data -p 8888:8888 -e JUPYTER_TOKEN spikeinterface/spikeinterface:0.2
77
TIMEOUT /T 2
88
START /W "" http://localhost:8888/lab?token=mytoken
99
ECHO Spike Interface started

spikeinterface/push.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker push spikeinterface/spikeinterface:0.2 .

0 commit comments

Comments
 (0)