Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate functionality #5776

Merged
merged 3 commits into from
Jul 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions holoviews/core/boundingregion.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import param
from param.parameterized import get_occupied_slots
from .util import datetime_types
from ..util.warnings import deprecated


class BoundingRegion:
Expand Down Expand Up @@ -351,6 +352,7 @@ class BoundingRegionParameter(param.Parameter):


def __init__(self, default=None, **params):
deprecated("1.18", "BoundingRegionParameter")
if default is None:
default = BoundingBox(radius=0.5)
self.set_hook = identity_hook
Expand Down
2 changes: 1 addition & 1 deletion holoviews/operation/datashader.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
def __getattr__(name):
if name == "ResamplingOperation":
from ..util.warnings import deprecated
deprecated("1.17", "ResamplingOperation", "ResampleOperation2D")
deprecated("1.18", "ResamplingOperation", "ResampleOperation2D")
return ResampleOperation2D
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

Expand Down
2 changes: 2 additions & 0 deletions holoviews/plotting/bokeh/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
)
from ...core.spaces import get_nested_dmaps, DynamicMap
from ..util import dim_axis_label
from ...util.warnings import deprecated

bokeh_version = Version(bokeh.__version__)
bokeh3 = bokeh_version >= Version("3.0")
Expand Down Expand Up @@ -620,6 +621,7 @@ def py2js_tickformatter(formatter, msg=''):
"""
Uses py2js to compile a python tick formatter to JS code
"""
deprecated("1.18", "py2js_tickformatter")
try:
from pscript import py2js
except ImportError:
Expand Down