##// END OF EJS Templates
Added .pid files to ipcluster and ipcontroller and daemon mode....
Added .pid files to ipcluster and ipcontroller and daemon mode. * The ClusterDir object now creates a /pid sub-dir for storing .pid files. * Both ipcluster and ipcontroller now create .pid files upon starting. * Both ipcluster and ipcontroller check for the existance of .pid files before starting and won't start if another instance is running. * ipcluster has a daemon mode (--daemon/--nodaemon) will daemonize the process and then write the .pid file. * Added a "ipcluster stop" subcommand which looks for a .pid file and kills the process.

File last commit:

r2261:5a080db1
r2313:d3d8ba63
Show More
ipython_config_numeric.py
19 lines | 517 B | text/x-python | PythonLexer
/ IPython / config / profile / ipython_config_numeric.py
c = get_config()
# This can be used at any point in a config file to load a sub config
# and merge it into the current one.
load_subconfig('ipython_config.py')
lines = """
import numpy
import scipy
import numpy as np
import scipy as sp
"""
# You have to make sure that attributes that are containers already
# exist before using them. Simple assigning a new list will override
# all previous values.
if hasattr(c.Global, 'exec_lines'):
c.Global.exec_lines.append(lines)
else:
c.Global.exec_lines = [lines]