Skip to main content

A server instance for NESTML

Project description

NESTML Server

Install

Install NEST Simulator into home folder because of non-root permission to write files into nest install directory.

wget https://github.com/nest/nest-simulator/archive/refs/heads/master.zip -O /tmp/nest-simulator-master.zip
unzip /tmp/nest-simulator-master.zip -d /tmp/
rm -rf /tmp/nest-build/; mkdir -p /tmp/nest-build; cd /tmp/nest-build
cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/opt/nest-nestml /tmp/nest-simulator-master
make -j $(nproc)
make install

Singularity

Use singularity or install all requirements in host.

Build Singularity images with all requirements for NESTML and server

sudo singularity build nestml-server.sif singularity/nest-server.def

Use Singularity for NESTML Server and Jupyter notebook

singularity shell nestml-server.sif

Usage

Source config variables of NEST to load path and pythonpath.

source $HOME/opt/nest-nestml/bin/nest_vars.sh
A. Start NESTML Server
gunicorn nestml_server:app --bind 0.0.0.0:52426 --timeout 120
B. Start Jupyter notebook

User can send code to NESTML server to build and install NESTML models.

cd notebook
jupyter notebook

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nestml_server-1.0.0b1.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

nestml_server-1.0.0b1-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page