Skip to content

Commit

Permalink
Quick release to remove ipython import for autosave disable
Browse files Browse the repository at this point in the history
  • Loading branch information
carlvitzthum committed Jun 7, 2019
1 parent f232ee2 commit 3644e14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion dcicutils/_version.py
Original file line number Diff line number Diff line change
@@ -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"
15 changes: 0 additions & 15 deletions dcicutils/jh_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3644e14

Please sign in to comment.