While the context manager in cluster_view is really convenient to make sure that the cluster is stopped, there are cases where I would like to control this on my own, especially when debugging in the console. Therefore I refractored the functionality of cluster_view into a class ClusterView that holds all information necessary to stop the cluster. cluster_view then is just a context manager around ClusterView that yields the actual view (thus this is completly backwards compatible).
I will be happy to adjust any implementation and style details.
While the context manager in cluster_view is really convenient to make sure that the cluster is stopped, there are cases where I would like to control this on my own, especially when debugging in the console. Therefore I refractored the functionality of cluster_view into a class ClusterView that holds all information necessary to stop the cluster. cluster_view then is just a context manager around ClusterView that yields the actual view (thus this is completly backwards compatible).
I will be happy to adjust any implementation and style details.