#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):
Indeed, a little more testing shows that `globals()` is definitely not the
usual Sage globals at that point - it is just the globals for that module,
including the things that were imported like `os` and the builtins. E.g.
{{{
'{\'load\': <function load at 0x1054cc488>, \'load_attach_path\':
<function load_attach_path at 0x110d99e60>,
\'reload_attached_files_if_modified\': <function
reload_attached_files_if_modified at 0x110d9f2a8>, ...
\'__doc__\': \'\\nKeep track of attached files\\n\\nTESTS::\\n\\n
sage: attach(\\\'http://wstein.org/loadtest.py\\\')\\n Traceback (most
recent call last):\\n ...\\n ...
\'load_wrap\': <function load_wrap at 0x1054cc500>, \'load_attach_mode\':
<function load_attach_mode at 0x110d99de8>,
\'__builtins__\': {\'bytearray\': <type \'bytearray\'>, \'IndexError\':
<type \'exceptions.IndexError\'>, ...},
...
\'os\': <module \'os\' from \'/Users/.../sage/local/lib/python/os.pyc\'>,
\'modified_file_iterator\': <function modified_file_iterator at
0x110d9f230>}'
}}}
Zoinks!
--
Ticket URL: <http://trac.sagemath.org/ticket/15308#comment:8>
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.