Skip to content

neutronimaging/python_notebooks

Repository files navigation

Python Notebooks DOI

This repository provides various notebooks for users of the neutron imaging beamlines at ORNL. Full tutorial of most of the notebooks can be found at here.

Prerequisites

This project uses Pixi for environment and dependency management. Install Pixi:

curl -fsSL https://pixi.sh/install.sh | bash

Quick Start

  1. Clone the repository:
git clone https://github.com/ornlneutronimaging/python_notebooks.git
cd python_notebooks_development
  1. Install dependencies:
pixi install
  1. Launch Jupyter Lab:
pixi run lab

Available Commands

  • pixi run lab - Start Jupyter Lab
  • pixi run notebook - Start Jupyter Notebook
  • pixi run test - Run tests
  • pixi run test_imports - Verify all packages import correctly
  • pixi run test_all - Run all tests
  • pixi run check - Run installation check

For development:

  • pixi run -e dev lint - Run code linting

Instructions

To learn more about the notebooks and how to use them, refer to the complete tutorial found on our imaging web site https://neutronimaging.pages.ornl.gov

Screen Shot 2021-06-11 at 8 03 33 AM

Instrument References

For more information about the facility and instruments, navigate to the following links:

How to contribute back

You can contribute back to this repo by

  • fork it to your own account
  • make the necessary adjustments
  • make a pull request on Github.

The maintainer of this repo will review your changes and provided feedback if needed. A more detailed instructions can be found in this post by DataSchool.

To run the tests:

pixi run test
# or
pixi run test_all  # runs all test suites

Deployment

This project uses Pixi for reproducible environments. The pixi.lock file ensures consistent dependencies across all installations.

Environment Management

  • Default environment: pixi shell or pixi run <command>
  • Development environment: pixi run -e dev <command>

Notebooks are distributed directly by the Computational Instrument Scientist.

About

List of notebooks for users

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 10