Yes, use the -i or -a options (or -I for both). See isympy --help for
more information.

A few things about this:

- These do require IPython.
- These should be rewritten to use the new input transformation
machinery of IPython 1.0. I haven't done this yet (pull requests
welcome). If that is done, it should be quite easy to reuse the
functionality outside of isympy in any IPython session, such as an
arbitrary IPython notebook.
- I'm -1 to making this the default. For one thing, we want to
encourage the use of Python idioms when using SymPy (see
http://docs.sympy.org/0.7.3/tutorial/intro.html#why-sympy).  Another
thing is that there are a few subtleties with these features, most of
which are spelled out in isympy --help.

And aside from the technical subtleties, there's also the issue with
-a with spelling a function wrong and never being alerted about it.
And you have a harder time converting code from an isympy -I session
to a real working Python script or IPython notebook.

Of course, you're free to add "alias isympy="isympy -I" to your bash profile.

I also discussed this a bit in my blog
http://asmeurersympy.wordpress.com/2012/08/31/isympy-i-a-saner-interactive-environment/.

Aaron Meurer

On Sun, Sep 1, 2013 at 2:31 PM, F. B. <[email protected]> wrote:
> Oh, I never noticed that before.
>
> I think it would be easier to make isympy -I or isympy -ai the default
> working mode, so it would be easier to use isympy as a CAS.
>
>
> On Sunday, September 1, 2013 5:30:00 PM UTC+2, Stefan Krastanov wrote:
>>
>> This is partly done in isympy, which I think uses Ipython when
>> available. Check ./bin/isympy.
>>
>> On 1 September 2013 11:27, F. B. <[email protected]> wrote:
>> > I have to questions about SymPy and IPython:
>> >
>> > is it possible to configure IPython to autowrap Python's int? Like it is
>> > already happening is Sage.
>> > is it possible to automatically capture NameError and autodeclare
>> > missing
>> > variables as SymPy's symbols() ?
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "sympy" 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/sympy.
>> > For more options, visit https://groups.google.com/groups/opt_out.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" 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/sympy.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to