def pause_ordering(): """Pause multipledispatch ordering.""" halt_ordering() try: yield finally: restart_ordering()
except ImportError: pass try: from .compute.chunks import * except ImportError: pass try: from .bcolz import * except ImportError: pass try: from .mongo import * except ImportError: pass restart_ordering() # Restart multipledispatch ordering and do ordering logging.basicConfig() logger = logging.getLogger(__name__) logger.setLevel(logging.WARNING) inf = float('inf') nan = float('nan') __version__ = '0.6.1' # If IPython is already loaded, register the Blaze catalog magic # from . import catalog # import sys # if 'IPython' in sys.modules:
with suppress(ImportError): # pip install ibis-framework[clickhouse] import ibis.clickhouse.api as clickhouse with suppress(ImportError): # pip install ibis-framework[bigquery] import ibis.bigquery.api as bigquery with suppress(ImportError): # pip install ibis-framework[mapd] if sys.version_info.major < 3: raise ImportError('The MapD backend is not supported under Python 2.') import ibis.mapd.api as mapd restart_ordering() def hdfs_connect(host='localhost', port=50070, protocol='webhdfs', use_https='default', auth_mechanism='NOSASL', verify=True, **kwds): """ Connect to HDFS Parameters ---------- host : string, Host name of the HDFS NameNode
with ignoring(ImportError, TypeError): from .compute.sparksql import * with ignoring(ImportError): from dynd import nd from .compute.dynd import * with ignoring(ImportError): from .compute.h5py import * with ignoring(ImportError): from .compute.hdfstore import * with ignoring(ImportError): from .compute.pytables import * with ignoring(ImportError): from .compute.chunks import * with ignoring(ImportError): from .compute.bcolz import * with ignoring(ImportError): from .mongo import * from .compute.mongo import * with ignoring(ImportError): from .pytables import * from .compute.pytables import * restart_ordering() # Restart multipledispatch ordering and do ordering inf = float('inf') nan = float('nan') from ._version import get_versions __version__ = get_versions()['version'] del get_versions