[IPython-user] ipython windows
Ryan Krauss
ryanlists at gmail.com
Tue Oct 25 16:27:52 CDT 2005
Sorry, I replied to Eric, but not to the list. ipython actually
worked for me by itself from the command line. I was surprised.
There is at least one PATH requirement. See below.
Ryan
---------- Forwarded message ----------
From: Ryan Krauss <ryanlists at gmail.com>
Date: Oct 25, 2005 4:55 PM
Subject: Re: [IPython-user] ipython windows
To: Eric Zollars <zollars at caltech.edu>
Provided you have C:\Python23\scripts\ in your PATH variable, you can
just type ipython. I just booted into windows and was actually
surprised this worked:
E:\>ipython -pylab
Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.6.16_cvs -- An enhanced Interactive Python.
? -> Introduction to IPython's features.
%magic -> Information about IPython's 'magic' % functions.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
Welcome to pylab, a matplotlib-based Python environment.
For more information, type 'help(pylab)'.
In [1]: pwd
Out[1]: 'E:\\'
In [2]:
You may also need C:\Python23\ in your PATH, but I would expect that
the python installer took care to that. I have a desktop short cut
with the target:
python.exe C:\Python23\scripts\ipython -pylab
that I had been using until I tried this.
Ryan
On 10/25/05, Eric Zollars <zollars at caltech.edu> wrote:
> The solution to getting ipython working on Windows Enthought Python is
> very simple: follow the directions on the ipython website.
> New downloads of PyWin32,CTypes,and Readline lead to an IPython that can
> be imported. (I had thought Enthought came with PyWin32.)
> Now, simple question. How do I get ipython running from the windows
> command line?
>
> Eric
>
> Fernando Perez wrote:
> > Hi Eric,
> >
> > Eric Zollars wrote:
> >
> >> I uninstalled ipython and readline. Since I had allowed readline to
> >> overwrite the previous (Enthought) readline this left me with an empty
> >> readline folder in site-packages. Reinstalled readline-1.12
> >>
> >> >>import readline
> >> >>dir(readline)
> >> ['PyReadline','__builtins__','__doc__','__file__','__none__','__path__']
> >> >>print readline.__file__
> >> C:\Python23\lib\site-packages\readline\__init__.pyc
> >>
> >> So obviously I am not getting the expected result but I do not know why.
> >>
> >> Eric
> >
> >
> >>
> >> Fernando.Perez at colorado.edu wrote:
> >
> >
> >>> The output I get is:
> >>>
> >>> ['CTRL', 'Console', 'GetOutputFile', 'PyReadline', 'Readline',
> >>> '__all__', '__bui
> >>> ltins__', '__doc__', '__file__', '__name__', '__path__',
> >>> 'add_history', 'c32', '
> >>> commonprefix', 'get_begidx', 'get_completer', 'get_completer_delims',
> >>> 'get_endid
> >>> x', 'get_history_length', 'get_line_buffer', 'glob', 'insert_text',
> >>> 'key_text_to
> >>> _keyinfo', 'keysyms', 'log', 'math', 'operator', 'os',
> >>> 'parse_and_bind', 'quote_
> >>> char', 're', 'read_history_file', 'read_init_file', 'rl',
> >>> 'set_completer', 'set_
> >>> completer_delims', 'set_history_length', 'set_pre_input_hook',
> >>> 'set_startup_hook
> >>> ', 'string', 'sys', 'traceback', 'write_history_file']
> >
> >
> > well, it's quite strange: you seem to be getting an _incomplete_
> > readline import. You may want to look inside the readline directory and
> > see if the code looks OK, and/or put a few print statements inside
> > there, to see why it's not building a complete module.
> >
> > Check for issues with ctypes imports inside readline and too-eager
> > try/except blocks which may be trapping an error and silencing it.
> >
> > Very strange.
> >
> > Cheers,
> >
> > f
> >
>
> _______________________________________________
> IPython-user mailing list
> IPython-user at scipy.net
> http://scipy.net/mailman/listinfo/ipython-user
>
More information about the IPython-user
mailing list