Skip to main content

A module for displaying NMR data with bokeh in Python or Jupyter Notebooks.

Project description

What is drawnmr?

drawnmr is a module for viewing NMR data in Python. When used with the nmrglue and bokeh packages, drawnmr provides functions to view and interact with NMR data.

nmrglue is used for processing nmrdata, and bokeh is used for showing and interacting. A range of widgets is written to interact with the plot.

What can drawnmr do?

drawnmr is a wrapper around nmrglue capabilities and provide helper functions to show the data in boheh, which is an interactive visualization library.

The main purpose is to show NMR data in a Jupyter Notebook. If a Jupyter Notebook installation is not running, bokeh allow the output to be saved to static HTML files.

Use interactive examples

  • Launch interactive Jupyter Notebook with mybinder.org and try examples:

https://mybinder.org/badge.svg https://raw.githubusercontent.com/tlinnet/drawnmr/master/docs/images/image_2.png https://raw.githubusercontent.com/tlinnet/drawnmr/master/docs/images/image_1.png

How to install?

If using conda, these steps will install an environment

# Create environment
conda create -n py36 python=3.6

# Install conda packages into environment
conda install -y -n py36 --file conda_req.txt

# Activate environment
alias py36='source activate py36'
source activate py36

# pip install
pip install -r requirements.txt

# install package
python setup.py install --force

Developer

# Modify version in: drawnmr/__init__.py

# Create tag
VERS=`python -c "from drawnmr import __version__; print(__version__)"`
# Adds a tag so that we can put this on PyPI
git tag $VERS -m ""
git push --tags origin master

# Upload your package to PyPI Test
python setup.py sdist upload -r pypitest
open https://testpypi.python.org/pypi/drawnmr

# Upload to PyPI Live
# Once you've successfully uploaded to PyPI Test, perform the same steps but point to the live PyPI server instead.
python setup.py sdist upload -r pypi
open https://pypi.python.org/pypi/drawnmr

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drawnmr-0.20.tar.gz (17.0 kB view details)

Uploaded Source

File details

Details for the file drawnmr-0.20.tar.gz.

File metadata

  • Download URL: drawnmr-0.20.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for drawnmr-0.20.tar.gz
Algorithm Hash digest
SHA256 9347a17ff8638e7ed6e1560d8a71bfa788cf19da2dcc6be8900b792d9b3999ac
MD5 50fc48182e85944fd37475140d8fb154
BLAKE2b-256 b085eac45a9222d9bc2a964445762d6ed752ec6c1f49116229b8407e7ea11840

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page