diff --git a/vegafusion-python/vegafusion/runtime.py b/vegafusion-python/vegafusion/runtime.py index 51180c3b..234d68d8 100644 --- a/vegafusion-python/vegafusion/runtime.py +++ b/vegafusion-python/vegafusion/runtime.py @@ -786,10 +786,20 @@ def cache_capacity(self, value: int) -> None: self.reset() def reset(self) -> None: + """ + Restart the runtime + """ if self._runtime is not None: self._runtime.clear_cache() self._runtime = None + def clear_cache(self) -> None: + """ + Clear the VegaFusion runtime cache + """ + if self._runtime is not None: + self._runtime.clear_cache() + def __repr__(self) -> str: if self.using_grpc: return f"VegaFusionRuntime(url={self._grpc_url})"