MCPcopy Create free account
hub / github.com/holoviz/hvplot / _clone

Method _clone

hvplot/interactive.py:392–432  ·  view source on GitHub ↗
(
        self,
        transform=None,
        plot=None,
        loc=None,
        center=None,
        dmap=None,
        copy=False,
        max_rows=None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

390 return evaluate
391
392 def _clone(
393 self,
394 transform=None,
395 plot=None,
396 loc=None,
397 center=None,
398 dmap=None,
399 copy=False,
400 max_rows=None,
401 **kwargs,
402 ):
403 plot = self._plot or plot
404 transform = transform or self._transform
405 loc = self._loc if loc is None else loc
406 center = self._center if center is None else center
407 dmap = self._dmap if dmap is None else dmap
408 max_rows = self._max_rows if max_rows is None else max_rows
409 depth = self._depth + 1
410 if copy:
411 kwargs = dict(
412 self._kwargs,
413 _current=self._current,
414 inherit_kwargs=self._inherit_kwargs,
415 method=self._method,
416 **kwargs,
417 )
418 else:
419 kwargs = dict(self._inherit_kwargs, **dict(self._kwargs, **kwargs))
420 return type(self)(
421 self._obj,
422 fn=self._fn,
423 transform=transform,
424 plot=plot,
425 depth=depth,
426 loc=loc,
427 center=center,
428 dmap=dmap,
429 _shared_obj=self._shared_obj,
430 max_rows=max_rows,
431 **kwargs,
432 )
433
434 def _repr_mimebundle_(self, include=[], exclude=[]):
435 return self.layout()._repr_mimebundle_()

Callers 7

_resolve_accessorMethod · 0.95
__call__Method · 0.95
test_spyFunction · 0.95
__array_ufunc__Method · 0.80
_apply_operatorMethod · 0.80
_plotMethod · 0.80
__call__Method · 0.80

Calls

no outgoing calls

Tested by 1

test_spyFunction · 0.76