Hi Hans,
Yes, this can be changed (and in fact we are considering to change it by
default in our next major release). For that you have to go to:
Preferences > Console > Advanced Settings > PYTHONSTARTUP replacement
and select the option
Default PYTHONSTARTUP script
Cheers,
Carlos
El 30/09/13 16:57, Hans Fangohr escribió:
Hi all,
thanks for Spyder -- it's a great tool.
It appears that the normal Python (2.7) console in Spyder has already
executed
from __future__ import division
when it starts?
Here is the session log (Spyder 2.2.4):
Python 2.7.5 |Anaconda 1.7.0 (x86_64)| (default, Jun 28 2013, 22:20:13)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
Imported NumPy 1.7.1, SciPy 0.12.0, Matplotlib 1.3.0
Type "scientific" for more details.
>>> 1/2
0.5
>>>
Maybe that is part of the 'scientific' command? (Although it is not
listed as one of the actions taken.)
My question is: can this be suppressed somehow (either execution of
the 'scientific', or the future division import)?
Many thanks,
Hans
--
You received this message because you are subscribed to the Google
Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/groups/opt_out.