Extension that provides a port allocation mechanism to other SWAN components.
- pyzmq
pip install swanportallocator
Configure the server extension to load when the notebook server starts
jupyter serverextension enable --py --user swanportallocator
Class swanportallocator.portallocator.PortAllocatorClient
can be used to connect to the port allocator process and get a given number of free ports.