Skip to content

Commit

Permalink
Reverted incorrect commit in get_namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jan 16, 2016
1 parent 5969e9f commit 52be603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/ipython/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def get_namespace(self):
"""
if 'holoviews' not in sys.modules:
raise ImportError('HoloViews does not seem to be imported')
matches = [k for k,v in get_ipython().user_ns.items()] # noqa (get_ipython)
if not k.startswith('_') and v is sys.modules['holoviews']:
matches = [k for k,v in get_ipython().user_ns.items() # noqa (get_ipython)
if not k.startswith('_') and v is sys.modules['holoviews']]
if len(matches) == 0:
raise Exception("Could not find holoviews module in namespace")
return '%s.archive' % matches[0]
Expand Down

0 comments on commit 52be603

Please sign in to comment.