source: trunk/bin/asap@ 2498

Last change on this file since 2498 was 2498, checked in by Malte Marquarding, 13 years ago

Moving to ipython >= 0.11 embedded shell

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