Skip to content

Jupyter Mantid Setup for ESS Neutron Software 🌟πŸ§ͺ This repository provides a Jupyter Notebook setup to work with **Mantid**, the neutron scattering data analysis software. It is tailored for use at the **European Spallation Source (ESS)** to enable seamless data processing and visualization in a user-friendly environment. --- ## Features ✨

Notifications You must be signed in to change notification settings

garethcmurphy/Jupyter-Mantid-Setup-for-ESS-Neutron-Software

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Jupyter Mantid Setup for ESS Neutron Software 🌟πŸ§ͺ

This repository provides a Jupyter Notebook setup to work with Mantid, the neutron scattering data analysis software. It is tailored for use at the European Spallation Source (ESS) to enable seamless data processing and visualization in a user-friendly environment.


Features ✨

  • Mantid Integration: Use Mantid algorithms and workflows directly in Jupyter Notebooks.
  • Neutron Data Analysis: Process and visualize neutron scattering data.
  • Customizable Environment: Extend the setup with your own Mantid-based scripts.

Prerequisites πŸ› οΈ

  • Python 3.8+
  • Jupyter Notebook installed.
  • Mantid Framework installed.

Install dependencies:
pip install jupyter


Installation

  1. Clone the repository:
    git clone https://github.com/your-username/jupyter-mantid-setup.git
    cd jupyter-mantid-setup

  2. Install the required Python packages:
    pip install -r requirements.txt

  3. Set up the Mantid environment:
    Ensure Mantid is installed and its Python bindings are accessible. Add Mantid's Python path to your environment variables:
    export PYTHONPATH=/path/to/mantid/lib

  4. Start the Jupyter Notebook server:
    jupyter notebook


Usage πŸ”§

  1. Open mantid_setup.ipynb in the Jupyter Notebook interface.

  2. Use Mantid algorithms directly in the notebook:

    • Load neutron scattering data.
    • Process workspaces.
    • Visualize data with Mantid plots.
  3. Add your own cells to extend the analysis.


File Structure πŸ“‚

  • mantid_setup.ipynb: Example notebook for Mantid integration.
  • requirements.txt: Python dependencies for Jupyter.
  • README.md: Documentation for the repository.

Example Code

from mantid.simpleapi import Load, PlotWorkspace

# Load a neutron scattering dataset
ws = Load('example_file.nxs')

# Visualize the workspace
PlotWorkspace(ws)

About

Jupyter Mantid Setup for ESS Neutron Software 🌟πŸ§ͺ This repository provides a Jupyter Notebook setup to work with **Mantid**, the neutron scattering data analysis software. It is tailored for use at the **European Spallation Source (ESS)** to enable seamless data processing and visualization in a user-friendly environment. --- ## Features ✨

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published