| Line | |
|---|
| 1 | #!/usr/bin/env python
|
|---|
| 2 | import os
|
|---|
| 3 |
|
|---|
| 4 | def 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 |
|
|---|
| 23 | try:
|
|---|
| 24 | os.system('clear')
|
|---|
| 25 | import IPython
|
|---|
| 26 | from asap import *
|
|---|
| 27 | main()
|
|---|
| 28 | except ImportError:
|
|---|
| 29 | print "No ipython found. Running standard python"
|
|---|
| 30 | from asap import *
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.