source: branches/hpc34/bin/asap@ 2634

Last change on this file since 2634 was 2499, checked in by Malte Marquarding, 12 years ago

use ipython >=0.11

File size: 904 bytes
Line 
1#!/usr/bin/env python
2import os
3
4def main():
5 from IPython.config.loader import Config
6 cfg = Config()
7 prompt_config = cfg.PromptManager
8 prompt_config.in_template = 'ASAP> '
9 prompt_config.out_template = 'asap>: '
10 cfg.InteractiveShell.autoindent = True
11 cfg.InteractiveShell.autocall = 2
12 cfg.InteractiveShell.magic_pprint = True
13 cfg.InteractiveShell.use_readline=True
14 cfg.InteractiveShell.confirm_exit=False
15 cfg.InteractiveShell.xmode='Plain'
16
17 from IPython.frontend.terminal.embed import InteractiveShellEmbed
18 ipshell = InteractiveShellEmbed(config=cfg,
19 banner1 = welcome(),
20 exit_msg = '')
21 ipshell()
22
23try:
24 os.system('clear')
25 import IPython
26 from asap import *
27 main()
28except ImportError:
29 print "No ipython found. Running standard python"
30 from asap import *
Note: See TracBrowser for help on using the repository browser.