Ask Your Question
1

Attaching files in notebook has not worked since 5.10

asked 10 years ago

BobB gravatar image

This has been reported in http://trac.sagemath.org/ticket/15308. But it doesn't look like fixing it is a very high priority for anyone that knows what they are doing - unfortunately I don't have a clue.

There is a comment that a workaround might be:

"Your problem seems to be that init.sage is evaluated before Sage is started. A workaround might be to use a .py file starting with from sage.all import *"

Can anyone help with telling me how to make use of this suggestion?

Preview: (hide)

Comments

This is also reported at https://github.com/sagemath/sagenb/issues/169 . I do wish I knew the answer to your question! Because I used to use it too. Unfortunately sagenb has not been as high of a priority since the cloud development started.

kcrisman gravatar imagekcrisman ( 10 years ago )

1 Answer

Sort by » oldest newest most voted
1

answered 10 years ago

kcrisman gravatar image

A different workaround is to use "load", which I believe does still work. However, you would have to reload each time you updated the file, it is true.

Preview: (hide)
link

Comments

It doesn't look like load works either. The error is different ("name 'Integer' is not defined" as opposed to "name 'var' is not defined"), but the end result is the same. Oh, wait. It does work. I had an "attach" inside the file I had changed to "load". It worked after I changed the embedded "attach" to "load".

BobB gravatar imageBobB ( 10 years ago )

Holy recursion, Batman! Glad it worked for you, though.

kcrisman gravatar imagekcrisman ( 10 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 10 years ago

Seen: 841 times

Last updated: Sep 22 '14