Package com.illumon.ipykernel
Class IPyKernelConfiguration
java.lang.Object
com.illumon.ipykernel.IPyKernelConfiguration
public class IPyKernelConfiguration extends Object
-
Method Summary
Modifier and Type Method Description void
assignFreePorts()
Determine free ports to use for control, hb, shell, stdin, and iopub.static IPyKernelConfiguration
createDefault(Database database, EventManagerCallbacks callbacks, String workerWebsocketUrl)
Map<String,Integer>
getProxyInfo()
Return a map of string names to the local port that we are listening on.static boolean
isConfigured()
-
Method Details
-
isConfigured
public static boolean isConfigured() -
createDefault
public static IPyKernelConfiguration createDefault(Database database, EventManagerCallbacks callbacks, String workerWebsocketUrl) -
getProxyInfo
Return a map of string names to the local port that we are listening on.- Returns:
- map from string identifiers to our local port
-
assignFreePorts
public void assignFreePorts()Determine free ports to use for control, hb, shell, stdin, and iopub. Update our connectionData JSON string to reflect those new ports. The connectionData should be used if present, overriding the original connection file that we parsed.
-