#15308: init.sage file is not read when starting the notebook
-------------------------------------------------+-------------------------
Reporter: jhpalmieri | Owner:
Type: defect | Status: new
Priority: critical | Milestone: sage-6.4
Component: notebook | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: Reported upstream. Developers | Work issues:
acknowledge bug. | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Comment (by kcrisman):
I appear to have a fix upstream; comments welcome there. Somehow the
change in #14523 in the definition of `attach` from
{{{
import preparser
for filename in files:
preparser.load(filename, globals(), attach=True)
}}}
to
{{{
try:
ipy = get_ipython()
except NameError:
ipy = None
global attached
for filename in files:
if ipy:
code = load_wrap(filename, attach=True)
ipy.run_cell(code)
else:
load(filename, globals(), attach=True)
}}}
did this. Probably that should really be fixed in Sage, but I don't want
to mess around with two fixes.
Can anyone think of why either adding that global (which one would think
wouldn't clobber `all` globals, such as `Integer`?) or having the command-
line code would be a problem? Really, neither one should in principle
cause a problem. But it does.
--
Ticket URL: <http://trac.sagemath.org/ticket/15308#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" 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/sage-trac.
For more options, visit https://groups.google.com/d/optout.