We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4273eb commit 96522b8Copy full SHA for 96522b8
src/vitessce/config.py
@@ -925,6 +925,19 @@ def stop_server(self, port):
925
del self.background_servers[port]
926
927
def stop_all_servers(self):
928
+ """
929
+ Stop all background servers associated with this config instance.
930
+
931
+ .. code-block:: python
932
+ :emphasize-lines: 5
933
934
+ from vitessce import VitessceConfig
935
936
+ vc = VitessceConfig(schema_version="1.0.18", name='My Config')
937
+ vw = vc.widget()
938
+ # ... do something with the widget ...
939
+ vc.stop_all_servers()
940
941
for server in self.background_servers.values():
942
server.stop()
943
self.background_servers = {}
0 commit comments