##// END OF EJS Templates
Fix so unicode strings are passed through to magic functions.
Fix so unicode strings are passed through to magic functions.

File last commit:

r2336:86c5a33d
r3470:18dc1a9c
Show More
ipcontroller_config.py
136 lines | 5.5 KiB | text/x-python | PythonLexer
/ IPython / config / default / ipcontroller_config.py
Brian Granger
Continuing work on ipcontroller.
r2288 from IPython.config.loader import Config
c = get_config()
#-----------------------------------------------------------------------------
# Global configuration
#-----------------------------------------------------------------------------
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # Basic Global config attributes
Brian Granger
Work on default config files and docstrings....
r2310
# Start up messages are logged to stdout using the logging module.
# These all happen before the twisted reactor is started and are
# useful for debugging purposes. Can be (10=DEBUG,20=INFO,30=WARN,40=CRITICAL)
# and smaller is more verbose.
# c.Global.log_level = 20
# Log to a file in cluster_dir/log, otherwise just log to sys.stdout.
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # c.Global.log_to_file = False
Brian Granger
Work on default config files and docstrings....
r2310
# Remove old logs from cluster_dir/log before starting.
Brian Granger
Most of the new ipcluster is now working, including a nice client.
r2306 # c.Global.clean_logs = True
Brian Granger
Work on default config files and docstrings....
r2310
# A list of Python statements that will be run before starting the
# controller. This is provided because occasionally certain things need to
# be imported in the controller for pickling to work.
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # c.Global.import_statements = ['import math']
Brian Granger
Work on default config files and docstrings....
r2310
# Reuse the controller's FURL files. If False, FURL files are regenerated
# each time the controller is run. If True, they will be reused, *but*, you
# also must set the network ports by hand. If set, this will override the
# values set for the client and engine connections below.
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # c.Global.reuse_furls = True
Brian Granger
Work on default config files and docstrings....
r2310
# Enable SSL encryption on all connections to the controller. If set, this
# will override the values set for the client and engine connections below.
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # c.Global.secure = True
Brian Granger
Continuing work on ipcontroller.
r2288
Brian Granger
The cluster applications now have a working directory option.....
r2330 # The working directory for the process. The application will use os.chdir
# to change to this directory before starting.
Brian Granger
Fixing how the working directory is handled in kernel....
r2336 # c.Global.work_dir = os.getcwd()
Brian Granger
The cluster applications now have a working directory option.....
r2330
Brian Granger
Continuing work on ipcontroller.
r2288 #-----------------------------------------------------------------------------
# Configure the client services
#-----------------------------------------------------------------------------
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # Basic client service config attributes
Brian Granger
Work on default config files and docstrings....
r2310
# The network interface the controller will listen on for client connections.
# This should be an IP address or hostname of the controller's host. The empty
# string means listen on all interfaces.
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # c.FCClientServiceFactory.ip = ''
Brian Granger
Work on default config files and docstrings....
r2310
# The TCP/IP port the controller will listen on for client connections. If 0
# a random port will be used. If the controller's host has a firewall running
# it must allow incoming traffic on this port.
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # c.FCClientServiceFactory.port = 0
Brian Granger
Work on default config files and docstrings....
r2310
# The client learns how to connect to the controller by looking at the
# location field embedded in the FURL. If this field is empty, all network
# interfaces that the controller is listening on will be listed. To have the
# client connect on a particular interface, list it here.
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # c.FCClientServiceFactory.location = ''
Brian Granger
Work on default config files and docstrings....
r2310
# Use SSL encryption for the client connection.
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # c.FCClientServiceFactory.secure = True
Brian Granger
Work on default config files and docstrings....
r2310
# Reuse the client FURL each time the controller is started. If set, you must
# also pick a specific network port above (FCClientServiceFactory.port).
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 # c.FCClientServiceFactory.reuse_furls = False
Brian Granger
Work on default config files and docstrings....
r2310 #-----------------------------------------------------------------------------
# Configure the engine services
#-----------------------------------------------------------------------------
# Basic config attributes for the engine services.
# The network interface the controller will listen on for engine connections.
# This should be an IP address or hostname of the controller's host. The empty
# string means listen on all interfaces.
# c.FCEngineServiceFactory.ip = ''
# The TCP/IP port the controller will listen on for engine connections. If 0
# a random port will be used. If the controller's host has a firewall running
# it must allow incoming traffic on this port.
# c.FCEngineServiceFactory.port = 0
# The engine learns how to connect to the controller by looking at the
# location field embedded in the FURL. If this field is empty, all network
# interfaces that the controller is listening on will be listed. To have the
# client connect on a particular interface, list it here.
# c.FCEngineServiceFactory.location = ''
# Use SSL encryption for the engine connection.
# c.FCEngineServiceFactory.secure = True
# Reuse the client FURL each time the controller is started. If set, you must
# also pick a specific network port above (FCClientServiceFactory.port).
# c.FCEngineServiceFactory.reuse_furls = False
#-----------------------------------------------------------------------------
# Developer level configuration attributes
#-----------------------------------------------------------------------------
# You shouldn't have to modify anything in this section. These attributes
# are more for developers who want to change the behavior of the controller
# at a fundamental level.
Brian Granger
Beginning to transition all paths, files, dirs over to unicode....
r2328 # c.FCClientServiceFactory.cert_file = u'ipcontroller-client.pem'
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297
# default_client_interfaces = Config()
# default_client_interfaces.Task.interface_chain = [
# 'IPython.kernel.task.ITaskController',
# 'IPython.kernel.taskfc.IFCTaskController'
# ]
#
Brian Granger
Beginning to transition all paths, files, dirs over to unicode....
r2328 # default_client_interfaces.Task.furl_file = u'ipcontroller-tc.furl'
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 #
# default_client_interfaces.MultiEngine.interface_chain = [
# 'IPython.kernel.multiengine.IMultiEngine',
# 'IPython.kernel.multienginefc.IFCSynchronousMultiEngine'
# ]
#
Brian Granger
Beginning to transition all paths, files, dirs over to unicode....
r2328 # default_client_interfaces.MultiEngine.furl_file = u'ipcontroller-mec.furl'
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 #
# c.FCEngineServiceFactory.interfaces = default_client_interfaces
Brian Granger
Continuing work on ipcontroller.
r2288
Brian Granger
Beginning to transition all paths, files, dirs over to unicode....
r2328 # c.FCEngineServiceFactory.cert_file = u'ipcontroller-engine.pem'
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297
# default_engine_interfaces = Config()
# default_engine_interfaces.Default.interface_chain = [
# 'IPython.kernel.enginefc.IFCControllerBase'
# ]
#
Brian Granger
Beginning to transition all paths, files, dirs over to unicode....
r2328 # default_engine_interfaces.Default.furl_file = u'ipcontroller-engine.furl'
Brian Granger
Finished refactoring ipcontroller to be a proper application....
r2297 #
# c.FCEngineServiceFactory.interfaces = default_engine_interfaces