Hi Carlos, thank you for the quick reply.
On 30 Sep 2013, at 23:17, Carlos Córdoba <[email protected]> wrote: > Hi Hans, > > My answers are below > > El 30/09/13 17:08, fangohr escribió: >> Hi Carlos, >> >> >> On 30 Sep 2013, at 23:01, Carlos Córdoba <[email protected]> wrote: >> >>> 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 >> >> That's actually fairly obvious - sorry I missed that. >> >> I'd support the change of the default settings for the next major release. I >> am looking at this (at the moment) from a teaching context, and it is useful >> to start from pure python, and then make it more convenient as required. > > Yes, that's my reasoning too. For newbies is quite unintuitive to have one > result in the console and a different one when they switch to the Editor and > evaluate the same code. > >> While we are discussing start-up scripts: when using the IPython console, I >> couldn't see the corresponding switch to avoid execution of "%pylab" or >> whatever happens at the start up, which essentially imports all the objects >> from pylab and numpy into the current name space. > > That's another option we are planning to deactivate by default. … for the same reasons, I suppose? I agree. > For now you have to go to > > Preferences > IPython Console > Graphics > Support for graphics > > and uncheck > > Automatically load Pylab and Numpy modules. I see, excellent. Cheers, Hans > > Cheers, > Carlos > >> Many thanks, >> >> Hans >> >>> >>> 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. >> >> -- >> 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.
