NanoVer Server
NanoVer Server: A Python Package for Serving Real-Time Multi-User Interactive Molecular Dynamics in Virtual Reality - Published in JOSS (2025)
Science Score: 98.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 11 DOI reference(s) in README and JOSS metadata -
✓Academic publication links
Links to: iop.org, joss.theoj.org -
○Academic email domains
-
○Institutional organization owner
-
✓JOSS paper metadata
Published in Journal of Open Source Software
Scientific Fields
Repository
Interactive Molecular Dynamics (iMD) in VR
Basic Info
- Host: GitHub
- Owner: IRL2
- License: mit
- Language: Jupyter Notebook
- Default Branch: main
- Homepage: https://irl2.github.io/nanover-docs/
- Size: 103 MB
Statistics
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 30
- Releases: 1
Metadata Files
README.md
NanoVer Python Server + gRPC Protocol
Repository containing the gRPC protocol and python based implementations of servers for NanoVer, providing a framework for developing interactive molecular dynamics simulations.
This software is designed to be used with NanoVer VR clients, e.g. NanoVer iMD-VR.
This repository is maintained by the Intangible Realities Laboratory, University of Santiago de Compostela, and is distributed under the MIT license. See the list of contributors for the individual authors of the project. If you would like to contribute to NanoVer, please see our contributing file for guidelines on how to do this.
For more information please take a look at the project's documentation.
Contents
- Getting started
- User installation
- Developer installation
- Running the tests
- Running the tutorials
- Troubleshooting
- Citation and external libraries
Getting started
Here are some quick notes to get you started with NanoVer! If you haven't installed NanoVer yet, please go to User installation or Developer installation.
Running a server via the command line
nanover.omni provides a command line interface for running OpenMM simulations. For example, from the nanover-server-py directory:
nanover-omni --omm examples/ase/openmm_files/nanotube.xml
Learn more about running a NanoVer server here in our documentation.
Tutorials
The examples folder contains Jupyter notebooks that demostrate how to get started NanoVer. Please head to the Tutorials page of the project's documentation for more information!
Exploring the code
The protocol folder contains the definitions of the gRPC services.
The python-libraries folder contains the library to write NanoVer clients and
servers in python, as well as the services implemented in python. The
python-libraries/prototypes directory contains examples and (sometimes
unmaintained) prototypes using the python libraries.
The csharp-libraries/NanoVer.Protocol folder contains C# implementations of clients for receiving trajectories and structures.
User installation
Check out the Installation & Getting Started page in our documentation for detailed instructions on installing NanoVer.
Updating the conda package
- Run
conda list nanover-serverto determine the currently installed version - Run
conda update nanover-serverto attempt to update to latest version - If you can't seem to update to the latest version, run
python --versionto check your python version is at least as recent as in the installation instructions. If it isn't you will need to create a new conda environment with a newer version of python.
Developer installation
Windows
- Install Anaconda
- Install the .NET core SDK (see https://dotnet.microsoft.com/download)
- Clone the nanover-server-py repository
- In the "Anaconda Powershell Prompt":
- Create a conda environment (here we call the environment "nanover-dev") with the required depencies:
conda create -n nanover-dev -c conda-forge "python>3.11" openmm MDAnalysis MDAnalysisTests ase - Activate the conda environment:
conda activate nanover-dev - Compile the protocol and install the NanoVer libraries in your conda environment:
./win_compile.ps1. If you do not plan on modifying the python packages, run./win_compile.ps1 -noeditinstead. Otherwise, by default, the nanover packages will be installed in edit mode (pip install -e) meaning that changes in thenanover-server-pydirectory will be directly reflected in your python environment.
- Create a conda environment (here we call the environment "nanover-dev") with the required depencies:
Mac and Linux
- Install Anaconda
- Clone the nanover-server-py repository
- In a terminal, in the repository root:
- Create a conda environment (here we call the environment "nanover-dev") with the required depencies:
conda create -n nanover-dev -c conda-forge "python>3.11" openmm MDAnalysis MDAnalysisTests ase - Activate the conda environment:
conda activate nanover-dev - Compile the protocol and install the NanoVer python libraries in your conda environment:
./compile.sh --no-dotnet. If you do not plan on modifying the python packages, you may run./compile.sh --no-edit --no-dotnetinstead. Otherwise, by default, the NanoVer packages will be installed in edit mode (pip install -e) meaning that changes in thenanover-server-pydirectory will be directly reflected in your python environment.
- Create a conda environment (here we call the environment "nanover-dev") with the required depencies:
Here, we installed only the python library. Using the --no-dotnet argument, we skipped building the C# libraries for NanoVer. Would you want to work on these library, you would need to:
- Install dotnet 2.11. This is an old version of the framework that is not maintained anymore. However, Unity still relies on it.
- Run the compile script:
./compile.sh --no-pythonto skip installing the python libraries, or just./compile.shto build the python libraries as well.
Running the tests
All code changes have to pass a series of automatic tests ("the CI") that attempt to verify code quality and continued functionality of the project. You can run these locally to verify your changes in advance.
Unit Tests
The unit tests check code functionality of the python libraries. To run them:
python -m pytest python-libraries
Optionally, you can run most of the tests in parallel with pytest-xdist:
python -m pip install pytest-xdist
python -m pytest python-libraries -n auto -m 'not serial'
python -m pytest python-libraries -n0 -m 'serial'
Formatting & Linting Tests
The formatting and linting tests check code style, and require ruff and black:
python -m pip install ruff
python -m pip install black
python -m ruff check python-libraries
python -m black --diff --check python-libraries
black can automatically reformat the files for you:
python -m black python-libraries
Type Checks
The type checks look at the type hints in the code to make sure they are consistent and help find potential errors:
python -m pip install mypy
mypy --ignore-missing-imports --namespace-packages --check-untyped-defs --allow-redefinition nanover-server
Running the tutorials
The tutorials folder contains Jupyter notebooks for examples of how to use NanoVer. Learn about these Tutorials or how to run a NanoVer server in this project's documentation.
OpenMM IMD Simulations
nanover.omni provides a command line interface for running serialised OpenMM simulations. For example, from the
nanover-server-py directory:
nanover-omni --omm examples/ase/openmm_files/nanotube.xml
ASE IMD Simulations Jupyter Notebooks
The examples/ase folder contains several Jupyter notebooks that demonstrate visualisation and interaction
from a notebook.
MD Analysis Trajectories
nanover.mdanalysis provides a server for the trajectory service that infinitely loops over the frames of an example
trajectory. To serve the frames on port 54321, from the nanover-server-py directory, run
python ./examples/mdanalysis/example.py
Troubleshooting
Autoconnect
If you are having trouble autoconnecting to servers, you can run nanover-essd-list to verify which local network servers are visible to your machine.
Citation and external libraries
Any work that uses NanoVer should cite the following publications:
Stroud, H. J., Wonnacott, M. D., Barnoud, J., Roebuck Williams, R., Dhouioui, M., McSloy, A., Aisa, L., Toledo, L. E., Bates, P., Mulholland, A. J., & Glowacki, D. R. (2025). NanoVer Server: A Python Package for Serving Real-Time Multi-User Interactive Molecular Dynamics in Virtual Reality. Journal of Open Source Software, 10 (110), 8118. https://doi.org/10.21105/joss.08118
Jamieson-Binnie, A. D., O’Connor, M. B., Barnoud, J., Wonnacott, M. D., Bennie, S. J., & Glowacki, D. R. (2020, August 17). Narupa iMD: A VR-Enabled Multiplayer Framework for Streaming Interactive Molecular Simulations. ACM SIGGRAPH 2020 Immersive Pavilion. SIGGRAPH ’20: Special Interest Group on Computer Graphics and Interactive Techniques Conference. https://doi.org/10.1145/3388536.3407891
O’Connor, M., Bennie, S. J., Deeks, H. M., Jamieson-Binnie, A., Jones, A. J., Shannon, R. J., Walters, R., Mitchell, T., Mulholland, A. J., & Glowacki, D. R. (2019). Interactive molecular dynamics from quantum chemistry to drug binding: an open-source multi-person virtual reality framework, The Journal of Chemical Physics, 150 (22), 224703. https://doi.org/10.1021/acs.jcim.0c01030
This project has been made possible by the following open source projects. We gratefully thank them for their efforts, and suggest that you use and cite them:
- gRPC (Apache v2) - Communication protocol.
- ASE (LGPLv3): Atomic simulation environment used for running simulations (citation).
- OpenMM (MIT, LGPLv3): GPU accelerated molecular mechanics library (citation).
- MDAnalysis (GPLv2): Molecular dynamics analysis library (citations).
- NGLView (MIT): IPython/Jupyter widget to interactively view structures and trajectories (citations).
- python-osc (Public domain) - Open sound control library.
- Numpy (BSD) - Numerical computation library.
- Netifaces (MIT) - Portable library for accessing network interface information.
- Pytest (MIT) - Python testing framework
- Hypothesis (Mozilla Public License 2.0) - Python testing framework.
Owner
- Name: IRL2.0
- Login: IRL2
- Kind: organization
- Website: https://www.intangiblerealitieslab.org/
- Repositories: 1
- Profile: https://github.com/IRL2
JOSS Publication
NanoVer Server: A Python Package for Serving Real-Time Multi-User Interactive Molecular Dynamics in Virtual Reality
Authors
Intangible Realities Laboratory, Centro Singular de Investigación en Tecnoloxías Intelixentes (CiTIUS), Universidade de Santiago de Compostela, Spain
Intangible Realities Laboratory, Centro Singular de Investigación en Tecnoloxías Intelixentes (CiTIUS), Universidade de Santiago de Compostela, Spain
Intangible Realities Laboratory, Centro Singular de Investigación en Tecnoloxías Intelixentes (CiTIUS), Universidade de Santiago de Compostela, Spain
Intangible Realities Laboratory, Centro Singular de Investigación en Tecnoloxías Intelixentes (CiTIUS), Universidade de Santiago de Compostela, Spain
Intangible Realities Laboratory, Centro Singular de Investigación en Tecnoloxías Intelixentes (CiTIUS), Universidade de Santiago de Compostela, Spain
Centre for Computational Chemistry, School of Chemistry, University of Bristol, United Kingdom
Intangible Realities Laboratory, Centro Singular de Investigación en Tecnoloxías Intelixentes (CiTIUS), Universidade de Santiago de Compostela, Spain
Intangible Realities Laboratory, Centro Singular de Investigación en Tecnoloxías Intelixentes (CiTIUS), Universidade de Santiago de Compostela, Spain
Centre for Computational Chemistry, School of Chemistry, University of Bristol, United Kingdom
Tags
NanoVer virtual reality interactive molecular dynamics iMD iMD-VR molecular dynamics MD enhanced sampling computational chemistry nonequilibriumCitation (CITATION.cff)
cff-version: "1.2.0"
authors:
- family-names: Stroud
given-names: Harry J.
orcid: "https://orcid.org/0000-0001-8440-2629"
- family-names: Wonnacott
given-names: Mark D.
orcid: "https://orcid.org/0000-0001-9304-7278"
- family-names: Barnoud
given-names: Jonathan
orcid: "https://orcid.org/0000-0003-0343-7796"
- family-names: "Roebuck Williams"
given-names: Rhoslyn
orcid: "https://orcid.org/0000-0003-2535-7180"
- family-names: Dhouioui
given-names: Mohamed
orcid: "https://orcid.org/0000-0003-4876-4686"
- family-names: McSloy
given-names: Adam
orcid: "https://orcid.org/0000-0002-9064-7072"
- family-names: Aisa
given-names: Ludovica
orcid: "https://orcid.org/0009-0002-2925-0081"
- family-names: Toledo
given-names: Luis E.
orcid: "https://orcid.org/0009-0001-4683-9835"
- family-names: Bates
given-names: Phil
orcid: "https://orcid.org/0000-0001-6010-1151"
- family-names: Mulholland
given-names: Adrian J.
orcid: "https://orcid.org/0000-0003-1015-4567"
- family-names: Glowacki
given-names: David R.
orcid: "https://orcid.org/0000-0002-9608-3845"
contact:
- family-names: Stroud
given-names: Harry J.
orcid: "https://orcid.org/0000-0001-8440-2629"
doi: 10.5281/zenodo.15691916
message: If you use this software, please cite our article in the
Journal of Open Source Software.
preferred-citation:
authors:
- family-names: Stroud
given-names: Harry J.
orcid: "https://orcid.org/0000-0001-8440-2629"
- family-names: Wonnacott
given-names: Mark D.
orcid: "https://orcid.org/0000-0001-9304-7278"
- family-names: Barnoud
given-names: Jonathan
orcid: "https://orcid.org/0000-0003-0343-7796"
- family-names: "Roebuck Williams"
given-names: Rhoslyn
orcid: "https://orcid.org/0000-0003-2535-7180"
- family-names: Dhouioui
given-names: Mohamed
orcid: "https://orcid.org/0000-0003-4876-4686"
- family-names: McSloy
given-names: Adam
orcid: "https://orcid.org/0000-0002-9064-7072"
- family-names: Aisa
given-names: Ludovica
orcid: "https://orcid.org/0009-0002-2925-0081"
- family-names: Toledo
given-names: Luis E.
orcid: "https://orcid.org/0009-0001-4683-9835"
- family-names: Bates
given-names: Phil
orcid: "https://orcid.org/0000-0001-6010-1151"
- family-names: Mulholland
given-names: Adrian J.
orcid: "https://orcid.org/0000-0003-1015-4567"
- family-names: Glowacki
given-names: David R.
orcid: "https://orcid.org/0000-0002-9608-3845"
date-published: 2025-06-27
doi: 10.21105/joss.08118
issn: 2475-9066
issue: 110
journal: Journal of Open Source Software
publisher:
name: Open Journals
start: 8118
title: "NanoVer Server: A Python Package for Serving Real-Time
Multi-User Interactive Molecular Dynamics in Virtual Reality"
type: article
url: "https://joss.theoj.org/papers/10.21105/joss.08118"
volume: 10
title: "NanoVer Server: A Python Package for Serving Real-Time
Multi-User Interactive Molecular Dynamics in Virtual Reality"
GitHub Events
Total
- Create event: 81
- Release event: 3
- Issues event: 78
- Watch event: 2
- Delete event: 81
- Issue comment event: 98
- Push event: 433
- Pull request review comment event: 49
- Pull request review event: 95
- Pull request event: 139
Last Year
- Create event: 81
- Release event: 3
- Issues event: 78
- Watch event: 2
- Delete event: 81
- Issue comment event: 98
- Push event: 433
- Pull request review comment event: 49
- Pull request review event: 95
- Pull request event: 139
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 38
- Total pull requests: 60
- Average time to close issues: about 2 months
- Average time to close pull requests: 8 days
- Total issue authors: 7
- Total pull request authors: 4
- Average comments per issue: 0.74
- Average comments per pull request: 0.28
- Merged pull requests: 38
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 37
- Pull requests: 60
- Average time to close issues: about 2 months
- Average time to close pull requests: 8 days
- Issue authors: 6
- Pull request authors: 4
- Average comments per issue: 0.73
- Average comments per pull request: 0.28
- Merged pull requests: 38
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Ragzouken (20)
- rhoslynroebuck (11)
- hjstroud (10)
- Mohamed-Dhouioui (2)
- jbarnoud (2)
- ludovicaisa (1)
Pull Request Authors
- Ragzouken (59)
- hjstroud (11)
- rhoslynroebuck (4)
- ludovicaisa (4)
- Mohamed-Dhouioui (2)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- actions/download-artifact v3 composite
- actions/upload-artifact v3 composite
- conda-incubator/setup-miniconda v2 composite
- actions/checkout v3 composite
- actions/setup-dotnet v3 composite
- conda-incubator/setup-miniconda v2 composite
- Newtonsoft.Json 12.0.3-beta1
- System.Interactive.Async 4.0.0
- Microsoft.NET.Test.Sdk 15.9.0
- NUnit3TestAdapter 3.11.0
- nunit 3.11.0
- Grpc.Tools 1.19.0 development
- Castle.Core 4.4.0
- Google.Protobuf 3.10.1
- Grpc 2.25.0
- JetBrains.Annotations 2019.1.1
- NSubstitute 4.2.1
- NUnit 3.11.0
- System.Buffers 4.4.0
- System.Memory 4.5.3
- System.Threading.Channels 4.6.0
- Microsoft.NET.Test.Sdk 15.7.0
- NUnit 3.11.0
- NUnit3TestAdapter 3.13.0
- xunit 2.3.1
- xunit.runner.visualstudio 2.3.1
- aiogrpc *
- grpcio >=1.33.2
- grpcio-tools >=1.0,<1.62
- hypothesis *
- numpy *
- pytest *
- setuptools >=40.1.1
- typing_extensions *
- python-osc *