##// END OF EJS Templates
update API after sagedays29...
update API after sagedays29 tests, docs updated to match * Client no longer has high-level methods (only in Views) * module functions can be pushed * clients can have a connection timeout * dependencies have separate switches for success/failure, not just success_only * add `with view.temp_flags(**flags):` for temporary flags Also updated some docs and examples

File last commit:

r3426:31c1e49a
r3664:e90463ba
Show More
__init__.py
25 lines | 940 B | text/x-python | PythonLexer
MinRK
cleaner error on pyzmq < 2.0.10.
r3317 #-----------------------------------------------------------------------------
# Copyright (C) 2010 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING.txt, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
MinRK
relax minimum_pyzmq_version, since EPD has 2.0.10-1 alias of 2.0.10.1
r3426 # Verify zmq version dependency >= 2.0.10-1
MinRK
cleaner error on pyzmq < 2.0.10.
r3317 #-----------------------------------------------------------------------------
MinRK
relax minimum_pyzmq_version, since EPD has 2.0.10-1 alias of 2.0.10.1
r3426 minimum_pyzmq_version = "2.0.10-1"
MinRK
cleaner error on pyzmq < 2.0.10.
r3317
try:
import zmq
except ImportError:
raise ImportError("IPython.zmq requires pyzmq >= %s"%minimum_pyzmq_version)
pyzmq_version = zmq.__version__
if pyzmq_version < minimum_pyzmq_version:
raise ImportError("IPython.zmq requires pyzmq >= %s, but you have %s"%(
minimum_pyzmq_version, pyzmq_version))
del pyzmq_version