##// END OF EJS Templates
load kwarg traits before loading config...
load kwarg traits before loading config in `Configurable.__init__` avoids problems in the new init of traitlets that skips `_trait_default` if specified in kwargs, which means really nothing should be done before `HasTraits.__init__` has been called. This does mean that such values are assigned twice. Typically, this will have no effect, except when a value is set by both config and kwarg.

File last commit:

r20354:4b151608
r20804:8d5ab280
Show More
zmqrelated.py
19 lines | 636 B | text/x-python | PythonLexer
Thomas Kluyver
Standardise some module docstring first lines
r13888 """Utilities for checking zmq versions."""
Min RK
bump pyzmq version dependency to 13...
r20354 # Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
MinRK
move check_for_zmq to utils.zmqrelated
r10201
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))