-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from MetaCell/release/0.7.0
Release/0.7.0
- Loading branch information
Showing
336 changed files
with
21,777 additions
and
1,035,039 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,33 @@ | ||
FROM frodriguez4600/jupyter-neuron:v7.8.0 | ||
ARG INSTALLATION_FOLDER=/home/jovyan/work/NetPyNE-UI | ||
ARG NETPYNE_VERSION=development | ||
ARG WORKSPACE_VERSION=nov2020 | ||
ARG JUPYTER_GEPPETTO_VERSION=development | ||
ARG PYGEPPETTO_VERSION=development | ||
ARG BUILD_ARGS="" | ||
|
||
USER $NB_USER | ||
|
||
ARG branch=development | ||
RUN echo "$branch"; | ||
ENV INSTALLATION_FOLDER=$INSTALLATION_FOLDER | ||
ENV NETPYNE_VERSION=$NETPYNE_VERSION | ||
ENV WORKSPACE_VERSION=$WORKSPACE_VERSION | ||
ENV JUPYTER_GEPPETTO_VERSION=$JUPYTER_GEPPETTO_VERSION | ||
ENV PYGEPPETTO_VERSION=$PYGEPPETTO_VERSION | ||
ENV BUILD_ARGS=$BUILD_ARGS | ||
|
||
ENV INSTALLATION_FOLDER=/home/jovyan/work/NetPyNE-UI | ||
WORKDIR /home/jovyan/work | ||
COPY --chown=1000:1000 requirements.txt ${INSTALLATION_FOLDER}/requirements.txt | ||
|
||
WORKDIR ${INSTALLATION_FOLDER} | ||
RUN pip install -r requirements.txt | ||
|
||
COPY --chown=1000:1000 . NetPyNE-UI | ||
COPY --chown=1000:1000 . . | ||
WORKDIR ${INSTALLATION_FOLDER}/utilities | ||
|
||
RUN python install.py branch $branch | ||
RUN python install.py ${BUILD_ARGS} | ||
|
||
WORKDIR ${INSTALLATION_FOLDER} | ||
|
||
RUN pip install -r requirements-test.txt | ||
RUN pytest tests/backend | ||
CMD /bin/bash -c "jupyter notebook --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui --NotebookApp.disable_check_xsrf=True" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
#!/bin/sh | ||
CONFIG=$(pwd)/.jupyter-config | ||
export JUPYTER_CONFIG_DIR=$CONFIG | ||
exec jupyter notebook --NotebookApp.default_url=/geppetto --NotebookApp.token='' --library=netpyne_ui --NotebookApp.disable_check_xsrf=True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
import os | ||
|
||
UPLOAD_FOLDER_NAME = 'uploads' | ||
NETPYNE_WORKDIR = 'netpyne_workspace' | ||
NETPYNE_WORKDIR = 'workspace' | ||
|
||
ALLOWED_EXTENSIONS = ["py", "zip", "gz", ".tar.gz", "pdf", "txt", "xls", "png", "jpeg", "hoc"] | ||
HERE = os.path.dirname(os.path.abspath(__file__)) | ||
ROOT = os.path.dirname(HERE) | ||
UPLOAD_FOLDER_PATH = os.path.join(ROOT, NETPYNE_WORKDIR, UPLOAD_FOLDER_NAME) | ||
NETPYNE_WORKDIR_PATH = os.path.join(ROOT, NETPYNE_WORKDIR) | ||
|
||
UPLOAD_FOLDER_PATH = os.path.join(os.getcwd(), NETPYNE_WORKDIR, UPLOAD_FOLDER_NAME) | ||
NETPYNE_WORKDIR_PATH = os.path.join(os.getcwd(), NETPYNE_WORKDIR) | ||
if not os.path.exists(NETPYNE_WORKDIR_PATH): | ||
NETPYNE_WORKDIR_PATH = os.path.join(os.getcwd(), NETPYNE_WORKDIR) | ||
|
||
if not os.path.exists(NETPYNE_WORKDIR_PATH): | ||
raise Exception(f"Workdir path {NETPYNE_WORKDIR_PATH} does not exist") | ||
|
||
if not os.path.exists(UPLOAD_FOLDER_PATH): | ||
os.makedirs(UPLOAD_FOLDER_PATH) | ||
|
||
if not os.path.exists(NETPYNE_WORKDIR_PATH): | ||
os.makedirs(NETPYNE_WORKDIR_PATH) | ||
os.makedirs(NETPYNE_WORKDIR_PATH) | ||
|
||
# Number of connections above this limit are considered too many to be shown. | ||
NUM_CONN_LIMIT = 1000 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
Oops, something went wrong.