From cccc1cebd496f542404cf89798970e655dcb5754 Mon Sep 17 00:00:00 2001 From: Todd Date: Tue, 27 Apr 2021 04:55:24 -0400 Subject: [PATCH] preserve function signature and docstring in `with_hv_extension` (#601) --- hvplot/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hvplot/util.py b/hvplot/util.py index 040691fd0..22e710232 100644 --- a/hvplot/util.py +++ b/hvplot/util.py @@ -6,6 +6,7 @@ import sys from distutils.version import LooseVersion +from functools import wraps from types import FunctionType import pandas as pd @@ -24,6 +25,7 @@ def with_hv_extension(func, extension='bokeh', logo=False): """If hv.extension is not loaded, load before calling function""" + @wraps(func) def wrapper(*args, **kwargs): if extension and not getattr(hv.extension, '_loaded', False): hv.extension(extension, logo=logo)