Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 489 Bytes

File metadata and controls

23 lines (14 loc) · 489 Bytes

SwanPortAllocator

Extension that provides a port allocation mechanism to other SWAN components.

Requirements

  • pyzmq

Install

pip install swanportallocator

Usage

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.