This guide will help you set up the necessary Python environment to run the NMR project. The environment includes various scientific libraries essential for working with NMR data.
Installation steps:
-
Open your terminal and navigate to the directory where you would like to download the NMR_core repository from Github.
cd <path-to-GitHub-repositories>
-
Tip for new Windows WSL users: You can navigate to your Windows file system in the WSL command line by using the following command:
cd /mnt/c/Users/<your-user-name>
-
-
Clone the nmr_core GitHub repositories.
git clone https://github.com/VonBoss/NMR_core.git
Options:
-
Create
nmr
conda environment.cd NMR_core conda env create --file nmr_environment.yml
-
Activate the
nmr
environment to use it.conda activate nmr
-
Run the Jupyter notebooks
You can now run your Jupyter notebooks within this environment. Start with:
jupyter notebook
-
Prerequisites
Before starting, make sure you have the following installed on your system:
- Python 3.8+
- pip
- virtualenv (optional but recommended)
-
Create a Virtual Environment (recommended).
python -m venv nmr
-
Activate the virtual environment.
On windows:
nmr\Scripts\activate
On macOS/Linux:
source nmr/bin/activate
-
Install dependencies
pip install numpy scipy ipykernel matplotlib nmrpy rdkit-pypi xlsxwriter pandas==2.1 pyarrow ipykernel python -m ipykernel install --user --name=nmr --display-name "Python (nmr)"
-
Run the Jupyter notebooks
You can now run your Jupyter notebooks within this environment. Start with:
jupyter notebook