I remember somebdy implementing directly in Ipython at some Sage days
(there is a way to plug hooks as we do with the preparser). The hook
itself was very naive (just a while loop catching NameError in sage_eval).
I am not able to find any trace of it.
But +1 for the feature at IPython level.
On 13/03/2018 18:32, Erik Bray wrote:
Paul Zimmerman pointed out to me that there's a feature of the legacy
Sage Notebook, automatic_names() , which turns on automatic
creation of symbolic variables and functions when they are not already
defined. For example, by default if you enter:
sage: x + y + z
NameError: name 'y' is not defined
('y', in this case, because 'x' is pre-defined as a special case).
With automatic_names(True) it inserts a shim into the Sage syntax
pre-processor that automatically creates variables from names not
already found in globals().
I see no reason this feature needs to be confined to the legacy
Notebook, as opposed to being in Sage proper. Then that feature would
be usable at the command-line, as well as in the Jupyter Notebook.
You received this message because you are subscribed to the Google Groups
To unsubscribe from this group and stop receiving emails from it, send an email
To post to this group, send email to email@example.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.