##// END OF EJS Templates
Temporarily disabling the ipdoctest nose plugin....
Temporarily disabling the ipdoctest nose plugin. This plugin was causing problems with Twisted. We need to go through the plugin to find the source of the problem. For now, our test suite passes though.

File last commit:

r1769:e574479c
r1888:3b62eea5
Show More
__init__.py
123 lines | 4.2 KiB | text/x-python | PythonLexer
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234 # encoding: utf-8
"""Default kernel configuration."""
__docformat__ = "restructuredtext en"
#-------------------------------------------------------------------------------
# Copyright (C) 2008 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# Imports
#-------------------------------------------------------------------------------
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 from os.path import join as pjoin
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234 from IPython.external.configobj import ConfigObj
from IPython.config.api import ConfigObjManager
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 from IPython.genutils import get_ipython_dir, get_security_dir
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234
default_kernel_config = ConfigObj()
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 security_dir = get_security_dir()
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234
#-------------------------------------------------------------------------------
# Engine Configuration
#-------------------------------------------------------------------------------
engine_config = dict(
logfile = '', # Empty means log to stdout
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 furl_file = pjoin(security_dir, 'ipcontroller-engine.furl')
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234 )
#-------------------------------------------------------------------------------
# MPI Configuration
#-------------------------------------------------------------------------------
mpi_config = dict(
mpi4py = """from mpi4py import MPI as mpi
mpi.size = mpi.COMM_WORLD.Get_size()
mpi.rank = mpi.COMM_WORLD.Get_rank()
""",
pytrilinos = """from PyTrilinos import Epetra
class SimpleStruct:
pass
mpi = SimpleStruct()
mpi.rank = 0
mpi.size = 0
""",
default = ''
)
#-------------------------------------------------------------------------------
# Controller Configuration
#-------------------------------------------------------------------------------
controller_config = dict(
logfile = '', # Empty means log to stdout
import_statement = '',
Brian Granger
A number of changes getting ready for a new ipcluster....
r1769 reuse_furls = False, # If False, old furl files are deleted
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234
engine_tub = dict(
ip = '', # Empty string means all interfaces
port = 0, # 0 means pick a port for me
location = '', # Empty string means try to set automatically
secure = True,
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 cert_file = pjoin(security_dir, 'ipcontroller-engine.pem'),
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234 ),
engine_fc_interface = 'IPython.kernel.enginefc.IFCControllerBase',
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 engine_furl_file = pjoin(security_dir, 'ipcontroller-engine.furl'),
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234
controller_interfaces = dict(
# multiengine = dict(
# controller_interface = 'IPython.kernel.multiengine.IMultiEngine',
# fc_interface = 'IPython.kernel.multienginefc.IFCMultiEngine',
# furl_file = 'ipcontroller-mec.furl'
# ),
task = dict(
controller_interface = 'IPython.kernel.task.ITaskController',
fc_interface = 'IPython.kernel.taskfc.IFCTaskController',
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 furl_file = pjoin(security_dir, 'ipcontroller-tc.furl')
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234 ),
multiengine = dict(
controller_interface = 'IPython.kernel.multiengine.IMultiEngine',
fc_interface = 'IPython.kernel.multienginefc.IFCSynchronousMultiEngine',
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 furl_file = pjoin(security_dir, 'ipcontroller-mec.furl')
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234 )
),
client_tub = dict(
ip = '', # Empty string means all interfaces
port = 0, # 0 means pick a port for me
location = '', # Empty string means try to set automatically
secure = True,
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 cert_file = pjoin(security_dir, 'ipcontroller-client.pem')
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234 )
)
#-------------------------------------------------------------------------------
# Client Configuration
#-------------------------------------------------------------------------------
client_config = dict(
client_interfaces = dict(
task = dict(
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 furl_file = pjoin(security_dir, 'ipcontroller-tc.furl')
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234 ),
multiengine = dict(
Brian Granger
All security related files (*.furl and *.pem) are now put in a default...
r1609 furl_file = pjoin(security_dir, 'ipcontroller-mec.furl')
Brian E Granger
This is a manual merge of certain things in the ipython1-dev branch, revision 46, into the main ...
r1234 )
)
)
default_kernel_config['engine'] = engine_config
default_kernel_config['mpi'] = mpi_config
default_kernel_config['controller'] = controller_config
default_kernel_config['client'] = client_config
config_manager = ConfigObjManager(default_kernel_config, 'IPython.kernel.ini')