[IPython-user] no site file

Fernando Perez fperez.net@gmail....
Fri Feb 9 15:29:49 CST 2007


On 2/9/07, John Hunter <jdh2358@gmail.com> wrote:
> I would like to launch ipython (in pylab mode) with the equivalent of
>
> > python -S
>
> which suppresses the site.py file.
>
> Any ideas?

The simplest I can think of doesn't quite work:

planck[~]> python -S `which ipython` -pylab
Traceback (most recent call last):
  File "/home/fperez/usr/bin/ipython", line 26, in ?
    import IPython
  File "/home/fperez/usr/lib/python2.4/site-packages/IPython/__init__.py",
line 60, in ?
    __import__(name,glob,loc,[])
  File "/home/fperez/usr/lib/python2.4/site-packages/IPython/Shell.py",
line 34, in ?
    from IPython.ipmaker import make_IPython
  File "/home/fperez/usr/lib/python2.4/site-packages/IPython/ipmaker.py",
line 23, in ?
    credits._Printer__data = """
NameError: name 'credits' is not defined

But I just committed r2093 that fixes this.  So if you update SVN, the
above will work just fine:

planck[~]> python -S `which ipython` -pylab
Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
Type "copyright", "credits" or "license" for more information.


...

Cheers,

f


More information about the IPython-user mailing list