On Jun 29, 5:52 am, Ahmed Fasih <[email protected]> wrote:

> There are a couple of things you can try:
> 1) If you are doing only Numpy stuff and don't need any sage-specific
> tools, you can use ipython without sage: "sage -ipython", or in the
> notebook, by either choosing "python" in the syntax drop-down menu
> instead of "sage", or by putting "%python" as the first line of cells.

--Will the '%python' directive affect ONLY the cell where it is
declared or all cells after it? In case the latter is true, is there
any way to turn "%python" off?


> 2) Turn off the preprocessor before chunks of Numpy code: "preparse
> (False)".

--In such a case, wouldn't you need 'preparse(True)' to turn it back
on?  While at this, is the 'preparse()' command global or does it
apply only to the cell where it is issued?  Since cells (in notebook)
can be executed independently, what if, say, a cell with no 'preparse
()' command is located right after (below) a cell with 'preparse
(False)' but the user re-executes a cell far below which has 'preparse
(True)' in it, then goes back and re-executes the cell in question
(which has no 'preparse')?  Would the preparser be on or off then?  I
guess I could try it out for myself, but there are many older versions
of Sage still in use.


--~--~---------~--~----~------------~-------~--~----~
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to