
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
drawnmr
Advanced tools
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.
drawnmr is a wrapper around nmrglue capabilities and provide helper functions to show the data in bokeh, which is an interactive visualisation 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.
nmrglue is used for processing nmrdata, and bokeh is used for showing and interacting. The function get_contour_widget() create ipywidgets to easily control contour levels. The function get_peakpick() calls nmrglue peakpick.pick() to find peaks, convert from data point to ppm coordinates, store in a pandas dataframe for easy inspection and add the peaks to the bokeh plot.
Use nbviewer.jupyter.org to:
.. _nmrglue_s4_2d_plotting.ipynb: http://nbviewer.jupyter.org/github/tlinnet/drawnmr/blob/master/examples/nmrglue_s4_2d_plotting.ipynb .. _contour_widget.ipynb: http://nbviewer.jupyter.org/github/tlinnet/drawnmr/blob/master/examples/contour_widget.ipynb .. _contour_find_peaks.ipynb: http://nbviewer.jupyter.org/github/tlinnet/drawnmr/blob/master/examples/contour_find_peaks.ipynb
Launch interactive Jupyter Notebook mybinder.org_ to try examples:
.. _mybinder.org: https://mybinder.org/v2/gh/tlinnet/drawnmr/master
.. image:: https://mybinder.org/badge.svg :target: https://mybinder.org/v2/gh/tlinnet/drawnmr/master
.. image:: https://raw.githubusercontent.com/tlinnet/drawnmr/master/docs/images/image_2.png .. image:: https://raw.githubusercontent.com/tlinnet/drawnmr/master/docs/images/image_1.png
If using conda, these steps will install an environment
.. code-block:: bash
pip install drawnmr
Developer install for local conda environment:
.. code-block:: bash
conda env create -f environment.yml
conda env list source activate drawnmr
jupyter nbextension list jupyter nbextension enable --py widgetsnbextension --sys-prefix
jupyter notebook
Or manual install in root environment:
.. code-block:: bash
python setup.py install --force
python setup.py install --record files.txt
PACK=dirname $(head -n 1 files.txt)
rm -rf $PACK
#cat files.txt | xargs rm -rf
.. code-block:: bash
VERS=python -c "from drawnmr import __version__; print(__version__)"
git tag $VERS -m "" git push --tags origin master
python setup.py sdist upload -r pypitest open https://testpypi.python.org/pypi/drawnmr
python setup.py sdist upload -r pypi open https://pypi.python.org/pypi/drawnmr
FAQs
A module for displaying NMR data with bokeh in Python or Jupyter Notebooks.
We found that drawnmr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.