[IPython-user] from __future__ import division

Olivier Verdier zelbier@gmail....
Thu Apr 3 01:06:42 CDT 2008


YES! This works!!! Thanks a lot!

== Olivier

On 03/04/2008, Ryan James <rgjames@ucdavis.edu> wrote:
> you can also add this to either ipy_user_conf.py or a profile:
>  ip.ex('__IP.compile("from __future__ import division", "<input>",
>  "single") in __IP.user_ns')
>  (that's a single long line).  it use to be on the wiki i think.
>
>  -ryan
>
>
>  On Wed, 2008-04-02 at 23:10 +0200, Olivier Verdier wrote:
>  > Sadly, it doesn't work. But I will try with the bzr version.
>  >
>  > Thanks a lot!
>  >
>  > == Olivier
>  >
>  > On 02/04/2008, Ville M. Vainio <vivainio@gmail.com> wrote:
>  > > On Wed, Apr 2, 2008 at 10:58 PM, Olivier Verdier <zelbier@gmail.com> wrote:
>  > >
>  > >  > Aaargh! It doesn't work on my version (svn rev r2408). Thanks a lot
>  > >  >  anyway. I will try to get a new version of IPython installed in the
>  > >  >  labs.
>  > >  >
>  > >  >  Do you folk think that there could be another possibility to fix this
>  > >  >  on older versions of IPython?
>  > >
>  > >
>  > > I'm not sure if this works in older versions, but it's something to
>  > >  try anyway (it works in bzr):
>  > >
>  > >  - Create divi.ipy with contents:
>  > >
>  > >  from __future__ import division
>  > >
>  > >  - Start ipython with "ipython -i divi.ipy"
>  > >
>  > >  You can also try omitting the -i switch.
>  > >
>  > >
>  > >  --
>  > >
>  > > Ville M. Vainio - vivainio.googlepages.com
>  > >  blog=360.yahoo.com/villevainio - g[mail | talk]='vivainio'
>  > >
>
> > _______________________________________________
>  > IPython-user mailing list
>  > IPython-user@scipy.org
>  > http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
>
>


More information about the IPython-user mailing list