From 16c24736e462fd405a6082f01ec18d654996ba18 Mon Sep 17 00:00:00 2001 From: wirawan Date: Fri, 19 Aug 2011 17:23:10 +0000 Subject: [PATCH] * ipython-interactive-script.PY: skeleton for my ipython interactive script. --- ipython-interactive-script.PY | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 ipython-interactive-script.PY diff --git a/ipython-interactive-script.PY b/ipython-interactive-script.PY new file mode 100644 index 0000000..6d020b2 --- /dev/null +++ b/ipython-interactive-script.PY @@ -0,0 +1,38 @@ +""" -*- python -*- +FOO.py + +A skeleton for ipython interactive script + +""" + +import datetime +import numpy +import os +import os.path +import sys +import re + +import wpylib.shell_tools as sh +from wpylib.interactive_tools import init_interactive + +from wpylib.params import struct +from wpylib.params import flat as params +from wpylib.sugar import ifelse +from wpylib.iofmt.text_input import text_input +from wpylib.iofmt.text_output import text_output +from wpylib.math.linalg import matmul + +#import pyqmc.matrices.gms as gms + +init_interactive() + +_g = globals() + +'''# -- for GAFQMC-targeted scripts +if "GAFQMC" not in _g: + GAFQMC = os.environ['GAFQMC'] + sys.path.append(os.path.join(GAFQMC, 'scripts')) + +# Now include the GAFQMC-specific modules here: +#import V2b_inspect +'''