def reload(self, path, reload_vertices=False, reload_data=True):
        """Reload a vtk file, entirely or partially."""
        from .vtk_loader import (
            load_vtk, get_ugrid_vertices, get_ugrid_data
        )

        grid = load_vtk(path)

        with self.hold_sync():
            if reload_vertices:
                self.vertices = get_ugrid_vertices(grid)
            if reload_data:
                _update_data_widget(get_ugrid_data(grid), self)
Reload a vtk file, entirely or partially.
ipygany/ipygany.py