kernel.scripts.ipcontroller

Module: kernel.scripts.ipcontroller

The IPython controller.

Functions

IPython.kernel.scripts.ipcontroller.get_temp_furlfile(filename)
IPython.kernel.scripts.ipcontroller.init_config()
Initialize the configuration using default and command line options.
IPython.kernel.scripts.ipcontroller.main()
After creating the configuration information, start the controller.
IPython.kernel.scripts.ipcontroller.make_client_service(controller_service, config)

Create a service that will listen for clients.

This service is simply a foolscap.Tub instance that has a set of Referenceables registered with it.

IPython.kernel.scripts.ipcontroller.make_engine_service(controller_service, config)

Create a service that will listen for engines.

This service is simply a foolscap.Tub instance that has a set of Referenceables registered with it.

IPython.kernel.scripts.ipcontroller.make_tub(ip, port, secure, cert_file)

Create a listening tub given an ip, port, and cert_file location.

Parameters:
ip : str

The ip address that the tub should listen on. Empty means all

port : int

The port that the tub should listen on. A value of 0 means pick a random port

secure: boolean

Will the connection be secure (in the foolscap sense)

cert_file:

A filename of a file to be used for theSSL certificate

IPython.kernel.scripts.ipcontroller.start_controller()

Start the controller by creating the service hierarchy and starting the reactor.

This method does the following:

  • It starts the controller logging
  • In execute an import statement for the controller
  • It creates 2 foolscap.Tub instances for the client and the engines and registers foolscap.Referenceables with the tubs to expose the controller to engines and clients.