Returns the current state of the interactive expression. The returned object is no longer interactive.
(self)
| 755 | return hv.DynamicMap(self._callback) |
| 756 | |
| 757 | def eval(self): |
| 758 | """ |
| 759 | Returns the current state of the interactive expression. The |
| 760 | returned object is no longer interactive. |
| 761 | """ |
| 762 | if self._dirty: |
| 763 | obj = self._obj |
| 764 | ds = hv.Dataset(_convert_col_names_to_str(obj)) |
| 765 | transform = self._transform |
| 766 | if ds.interface.datatype == 'xarray' and is_xarray_dataarray(obj): |
| 767 | transform = transform.clone(obj.name) |
| 768 | obj = transform.apply(ds, keep_index=True, compute=False) |
| 769 | self._current_ = obj |
| 770 | self._dirty = False |
| 771 | else: |
| 772 | obj = self._current_ |
| 773 | |
| 774 | if self._method: |
| 775 | # E.g. `pi = dfi.A` leads to `pi._method` equal to `'A'`. |
| 776 | obj = getattr(obj, self._method, obj) |
| 777 | if self._plot: |
| 778 | obj = Interactive._fig |
| 779 | |
| 780 | return obj |
| 781 | |
| 782 | def layout(self, **kwargs): |
| 783 | """ |