##// END OF EJS Templates
Make set_term_title() default to no-op, as it can cause problems....
Make set_term_title() default to no-op, as it can cause problems. In embedded contexts this can corrupt stdout (e.g. gedit ipython plugin), by default ipython should be 'safe' to use in all contexts. The user-facing terminal app can activate more aggressive configurations as needed. Added an API call to actually toggle the state, and deprecated the old one (which could only disable but not enable).

File last commit:

r1049:c87d640e
r1852:37edbe78
Show More
ipykit.py
21 lines | 627 B | text/x-python | PythonLexer
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" IPykit launcher
w/o args, this launches a full ipykit session.
If the first arg is a .py script, it will be run WITHOUT ipython,
to facilitate running python scripts almost normally on machines w/o python
in their own process (as opposed to %run).
"""
import sys
if len(sys.argv) > 1 and sys.argv[1].endswith('.py'):
# shortcut for running ipykit.exe directly on a .py file - do not bother
# starting ipython, just handle as normal python scripts
sys.argv = sys.argv[1:]
execfile(sys.argv[0])
else:
import IPython
IPython.Shell.start().mainloop()