Ask Your Question
1

Attaching files in notebook has not worked since 5.10

asked 2014-09-21 07:15:46 +0100

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?

edit retag flag offensive close merge delete

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 ( 2014-09-22 14:35:38 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-09-22 14:36:11 +0100

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.

edit flag offensive delete link more

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 ( 2014-10-18 18:38:16 +0100 )edit

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

kcrisman gravatar imagekcrisman ( 2014-10-19 02:36:06 +0100 )edit

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: 2014-09-21 07:15:46 +0100

Seen: 647 times

Last updated: Sep 22 '14