Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init.sage not attached in worksheets #8092

Closed
qed777 mannequin opened this issue Jan 27, 2010 · 9 comments
Closed

init.sage not attached in worksheets #8092

qed777 mannequin opened this issue Jan 27, 2010 · 9 comments

Comments

@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 27, 2010

From the main notebook help page:

The file $HOME/.sage/init.sage is attached on startup if it exists.

But the file is not attached --- try evaluating attached_files(). This is a follow-up to #7514.

See sage-devel, sage-notebook.

CC: @williamstein

Component: notebook

Author: Mitesh Patel

Reviewer: William Stein, Tim Dumol

Merged: sagenb-0.8

Issue created by migration from https://trac.sagemath.org/ticket/8092

@qed777 qed777 mannequin added c: user interface labels Jan 27, 2010
@qed777 qed777 mannequin assigned williamstein Jan 27, 2010
@qed777
Copy link
Mannequin Author

qed777 mannequin commented Jan 27, 2010

Attach DOT_SAGE/init.sage. sagenb repo.

@qed777
Copy link
Mannequin Author

qed777 mannequin commented Jan 27, 2010

comment:1

Attachment: trac_8092-init_sage.patch.gz

The attached patch seems to work for me.  DOT_SAGE/init.sage is equivalent to os.environ['SAGE_STARTUP_FILE'] (see SAGE_LOCAL/bin/ipy_profile_sage.py).

@qed777
Copy link
Mannequin Author

qed777 mannequin commented Jan 27, 2010

Author: Mitesh Patel

@qed777 qed777 mannequin added the s: needs review label Jan 27, 2010
@qed777 qed777 mannequin added this to the sage-4.3.2 milestone Jan 27, 2010
@williamstein
Copy link
Contributor

comment:2

Oops!

except KeyError, IOError:

should be

except (KeyError, IOError):

This is one of those very annoying tricky mistakes people make with Python exceptions...

@qed777
Copy link
Mannequin Author

qed777 mannequin commented Jan 28, 2010

Attachment: trac_8092-init_sage.2.patch.gz

Fixes Oops! Replaces previous.

@qed777
Copy link
Mannequin Author

qed777 mannequin commented Jan 28, 2010

Reviewer: William Stein

@qed777 qed777 mannequin added s: needs review and removed s: needs work labels Jan 28, 2010
@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Mar 19, 2010

Changed reviewer from William Stein to William Stein, Tim Dumol

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Mar 19, 2010

comment:4

LGTM.

@TimDumol
Copy link
Mannequin

TimDumol mannequin commented Apr 24, 2010

Merged: sagenb-0.8

@TimDumol TimDumol mannequin removed the s: positive review label May 4, 2010
@TimDumol TimDumol mannequin closed this as completed May 4, 2010
@TimDumol TimDumol mannequin mentioned this issue May 3, 2010
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant