Skip to content

Commit

Permalink
Installs NEST, OMV, sbml libs
Browse files Browse the repository at this point in the history
  • Loading branch information
pgleeson committed Mar 5, 2024
1 parent 072e346 commit 9d2377a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
28 changes: 26 additions & 2 deletions applications/jupyterlab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ RUN pip install -r requirements.txt --upgrade --no-cache-dir
RUN jupyter labextension install plotlywidget



##############

USER root
Expand All @@ -44,6 +43,10 @@ RUN echo -e '#!/bin/bash\n#Reusing the jNeuroML jar from the pip installed pyNeu
RUN chmod +x /opt/conda/bin/jnml
ENV JNML_HOME=/opt/conda/bin

### Set up lems, reusing pynml jar
RUN echo -e '#!/bin/bash\n#Reusing the jNeuroML jar from the pip installed pyNeuroML for the lems command\n\njava -classpath /opt/conda/lib/python3.9/site-packages/pyneuroml/lib/jNeuroML-*-jar-with-dependencies.jar org.lemsml.jlems.viz.VizMain $@' >> /opt/conda/bin/lems
RUN chmod +x /opt/conda/bin/lems

RUN cat ~/.bashrc


Expand Down Expand Up @@ -84,13 +87,34 @@ RUN apt-get update && apt-get install libopenmpi-dev -y
# Octave etc.
RUN apt-get update && apt-get install octave octave-statistics -y

# NEST
ENV NEST_VER=3.5
ENV NEST_HOME=/opt/conda/nest
RUN cd /tmp && \
wget -nv https://github.com/nest/nest-simulator/archive/v$NEST_VER.tar.gz && \
tar xvzf v$NEST_VER.tar.gz && \
mv nest-simulator-$NEST_VER nest && \
cd nest && \
mkdir $NEST_HOME && \
apt-get install libgsl-dev -y && \
cmake -DCMAKE_INSTALL_PREFIX:PATH=$NEST_HOME -DPYTHON_EXECUTABLE:FILEPATH=/opt/conda/bin/python -DPYTHON_INCLUDE_DIR=/opt/conda/include/python3.9 . && \
make -j7 && \
make install
ENV PYTHONPATH=$NEST_HOME/lib/python3.9/site-packages
ENV PATH=$PATH:$NEST_HOME/bin

USER jovyan
#### Install Python packages
RUN pip install -r requirements.txt --upgrade --no-cache-dir

# Compile NEURON mod files for PyNN
RUN cd /opt/conda/lib/python3.9/site-packages/pyNN/neuron/nmodl && nrnivmodl
# See https://github.com/OpenSourceBrain/osb-model-validation/issues/91 for status of this
RUN pip install 'numpy<=1.23.0' # temp fix for https://levelup.gitconnected.com/fix-attributeerror-module-numpy-has-no-attribute-float-d7d68c5a4971

#########################################################################
# fix for https://github.com/jupyter/notebook/issues/7048

RUN pip install traitlets==5.9.0

COPY --chown=jovyan:users overrides/* /opt/conda/share/jupyter/lab/static/
WORKDIR /opt/workspace
10 changes: 10 additions & 0 deletions applications/jupyterlab/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,18 @@ tvb-data
ipympl


#### SBML/COMBINE packages
python-libsbml
tellurium


#### General Python packages
plotly


#### Install OMV
git+https://github.com/OpenSourceBrain/[email protected]


#### Final updates
numpy # Removes some issues with LFPy...

0 comments on commit 9d2377a

Please sign in to comment.