##// END OF EJS Templates
- Fixes for doctest support. Need more testing, esp. to be sure they don't...
- Fixes for doctest support. Need more testing, esp. to be sure they don't introduce any side-effects, since I'm messing with the FakeModule object which Pickle and others depend on. - Small fixes in object inspection. - Restored a number of magics that should NOT have been moved out to ipy_legacy.

File last commit:

r798:e21ca547
r834:a1312bc6
Show More
ipykit.py
21 lines | 648 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()