Skip to content

Commit

Permalink
Renamed hv.renderer to hv.extension
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Jun 5, 2017
1 parent cfba05f commit cd501f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion holoviews/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
try:
import IPython # noqa (API import)
from .ipython import notebook_extension
renderer = notebook_extension
extension = notebook_extension
except ImportError as e:
class notebook_extension(param.ParameterizedFunction):
def __call__(self, *args, **opts):
Expand Down
6 changes: 3 additions & 3 deletions holoviews/ipython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from ..core.options import Store
from ..element.comparison import ComparisonTestCase
from ..interface.collector import Collector
from ..util import renderer
from ..util import extension
from ..plotting.renderer import Renderer
from .magics import load_magics
from .display_hooks import display # noqa (API import)
Expand Down Expand Up @@ -73,9 +73,9 @@ def line_magic(self, *args, **kwargs):
self.ip.run_line_magic(*args, **kwargs)


class notebook_extension(renderer):
class notebook_extension(extension):
"""
Notebook specific extension to hv.renderer that offers options for
Notebook specific extension to hv.extension that offers options for
controlling the notebook environment.
"""

Expand Down
6 changes: 4 additions & 2 deletions holoviews/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ def output(line=None, obj=None, **options):
output.__doc__ = Store.output_settings._generate_docstring()


class renderer(param.ParameterizedFunction):
class extension(param.ParameterizedFunction):
"""
Helper utility used to load rendering backends.
Helper utility used to load holoviews extensions. These can be
plotting extensions, element extensions or anything else that can be
registered to work with HoloViews.
"""

# Mapping between backend name and module name
Expand Down

0 comments on commit cd501f0

Please sign in to comment.