Installation Guide
This guide will walk you through installing the NMR Sample Manager in TopSpin. The process is straightforward and takes about 5 minutes.
Step 1: Choose Installation Location
First, decide where to install Sample Manager. Good options include:
# In your home directory (recommended for single-user installations)
cd ~
# Or in a shared lab directory (recommended for multi-user facilities)
cd /path/to/shared/lab/software
Installation Location
You cannot install Sample Manager within TopSpin's /opt/topspin... directories. You'll need to choose a location where you have write permissions, such as your home directory or a shared lab folder.
Step 2: Clone the Repository
Clone the Sample Manager repository using git:
This will create a topspin-samples directory containing the application.
What if I don't have git?
You can download the repository as a ZIP file from GitHub, then unzip it in your chosen location.
Step 3: Configure TopSpin Python Path
Now we need to tell TopSpin where to find the Sample Manager code. This is done through TopSpin's setres utility.
3.1 Configure Python Path with setres
In TopSpin, type setres to open the Resource Editor. Navigate to Directories → Manage source directories for edpul, edau, etc. In the popup window, select the Jython Programs tab and add the full path to your topspin-samples/src directory (e.g., /home/username/topspin-samples/src or /Users/username/topspin-samples/src on macOS). Use the full absolute path, not a relative path, and make sure to point to the src subdirectory.

3.2 Save and Restart
- Click "Save" or "OK" in the setres window
- You may need to Restart TopSpin to apply the changes
Step 4: Verify Installation
After restarting TopSpin, verify that Sample Manager is installed correctly:
-
In TopSpin's command line, type:
-
The Sample Manager GUI window should appear:

If you see the window, congratulations! Sample Manager is installed and ready to use.
Step 5: Updating Sample Manager
The app checks automatically on startup to see if updates are available (provided the spectrometer is connected to the internet):

To update to the latest version of Sample Manager:
-
Open a terminal and navigate to your installation directory:
-
Pull the latest changes from GitHub:
-
Restart TopSpin to load the updated code
Next Steps
Now that Sample Manager is installed, you're ready to start using it:
- The Samples App - What you can do with the GUI
- Physical Sample Handling - Workflow commands for metadata capture
Multi-User Installations
Shared Lab Setup
For labs with multiple NMR users, we recommend:
-
Install in a shared location accessible to all users:
-
Each user configures their own TopSpin by adding the shared path to PYTHONPATH via
setres
Uninstallation
To remove Sample Manager:
- Open TopSpin's
setresutility - Remove the Sample Manager path from PYTHONPATH
- Save and restart TopSpin
- Optionally, delete the
topspin-samplesdirectory
Your data is safe
Uninstalling Sample Manager does not delete your sample metadata JSON files. These remain in your NMR data directories and can still be viewed/edited using the web-based viewer.
Having trouble? Contact us or open an issue on GitHub.