HNN “Python” install (CentOS)
Note: these are instructions for installing the original version of HNN, which is no longer actively-developed, and only made available for scientific reproducibility. If you are reading this, you probably want to be using the actively-developed version, called HNN-Core, which is available here.
The script below assumes that it can update OS packages for python and prerequisites for HNN.
-
CentOS 7: hnn-centos7.sh
curl --remote-name https://raw.githubusercontent.com/jonescompneurolab/hnn/master/installer/centos/hnn-centos7.sh bash hnn-centos7.sh -
CentOS 6 (no longer maintained): hnn-centos6.sh
curl --remote-name https://raw.githubusercontent.com/jonescompneurolab/hnn/master/installer/centos/hnn-centos6.sh bash hnn-centos6.sh
Start HNN
-
From the command-line, type following commands
cd hnn_source_code python3 hnn.py -
The HNN GUI should show up. Make sure that you can run simulations by clicking the ‘Run Simulation’ button. This will run a simulation with the default configuration. After it completes, graphs should be displayed in the main window.
-
You can now proceed to running the tutorials at https://hnn.brown.edu/index.php/tutorials/ . Some things to note:
- A directory called “hnn_out” exists in your home directory in Ubuntu where the results from your simulations (data and param files) will be stored.
Upgrading to a new version of HNN
HNN Releases can be seen on the GitHub releases page. You can also be notified of new releases by watching the hnn repository on GitHub.
To download the latest release, use the following commands within an Ubuntu terminal:
curl --remote-name https://github.com/jonescompneurolab/hnn/releases/latest/download/hnn.tar.gz
tar -x --strip-components 1 -f hnn.tar.gz -C hnn_source_code
cd hnn_source_code
make
python3 hnn.py