##// END OF EJS Templates
Backport PR #8174: add 4px between notification areas...
Backport PR #8174: add 4px between notification areas ![screen shot 2015-03-27 at 15 25 37](https://cloud.githubusercontent.com/assets/151929/6878113/aeb2ddfc-d495-11e4-94c9-9059723033a7.PNG) closes #7790 cc: @ellisonbg

File last commit:

r20354:4b151608
r21018:2be7680b
Show More
zmqrelated.py
19 lines | 636 B | text/x-python | PythonLexer
"""Utilities for checking zmq versions."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from IPython.utils.version import check_version
def check_for_zmq(minimum_version, required_by='Someone'):
try:
import zmq
except ImportError:
raise ImportError("%s requires pyzmq >= %s"%(required_by, minimum_version))
pyzmq_version = zmq.__version__
if not check_version(pyzmq_version, minimum_version):
raise ImportError("%s requires pyzmq >= %s, but you have %s"%(
required_by, minimum_version, pyzmq_version))