From 3644e14944257df9943f4ec283aa5215ce5d2c80 Mon Sep 17 00:00:00 2001 From: Carl Vitzthum Date: Fri, 7 Jun 2019 11:20:00 -0400 Subject: [PATCH] Quick release to remove ipython import for autosave disable --- dcicutils/_version.py | 2 +- dcicutils/jh_utils.py | 15 --------------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/dcicutils/_version.py b/dcicutils/_version.py index 81eb185f1..b5b29c737 100644 --- a/dcicutils/_version.py +++ b/dcicutils/_version.py @@ -1,4 +1,4 @@ """Version information.""" # The following line *must* be the last in the module, exactly as formatted: -__version__ = "0.7.2" +__version__ = "0.7.3" diff --git a/dcicutils/jh_utils.py b/dcicutils/jh_utils.py index f60cdb20e..d3cdee507 100644 --- a/dcicutils/jh_utils.py +++ b/dcicutils/jh_utils.py @@ -10,21 +10,6 @@ import urllib.request as use_urllib else: import urllib2 as use_urllib -# disabled JH autosave, if we are in a notebook (with Ipython module) -try: - from IPython import ( - get_ipython, - utils as ipy_utils - ) -except ImportError: - pass -else: - ipython = get_ipython() # will return None if not in a notebook - if ipython and hasattr(ipython, 'magic'): - # disable autosaving in a notebook -- analogous to running %autosave 0 - # capture outpute as well - with ipy_utils.io.capture_output(): - ipython.magic("autosave 0") # do some top level stuff when the module is imported if 'FF_ACCESS_KEY' not in os.environ or 'FF_ACCESS_SECRET' not in os.environ: