Skip to content

Commit 96522b8

Browse files
committed
Docs
1 parent d4273eb commit 96522b8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/vitessce/config.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,19 @@ def stop_server(self, port):
925925
del self.background_servers[port]
926926

927927
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+
"""
928941
for server in self.background_servers.values():
929942
server.stop()
930943
self.background_servers = {}

0 commit comments

Comments
 (0)