On 5/30/07, Joel B. Mohler <[EMAIL PROTECTED]> wrote:
> Yes, I understand all that.  My use of the word "inject" was probably wrong.
> I'm just saying that these extra things which are nice for interactive use
> from ipython pollute the namespace for people who write python programs which
> have a line like "from sage.all import *".  I think these convenience
> variables should be gathered out and injected into the ipython namespace
> separately (and in a central place in code).

Now *that* is a crystal clear suggestion.   This would be trivial to implement.
Here's the current situation.
In devel/sage/sage there are three files:  all.py, all_cmdline.py, and
all_notebook.py
When you do "from sage.all import *" everything in all is important, but nothing
in all_cmdline and all_notebook.   When you run the SAGE command line (IPython),
you get all_cmdline.py, which includes all.py and could include other things
(it currently doesn't).  Likewise, when you run all_notebook, only
all_notebook.py
is imported.

So -- if you want to implement you suggestion, we just remove the import
of predefined in calculus/all.py and put it in both all_cmdline.py and
all_notebook.py.  That's it.

William

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to