Ask Your Question

Attaching files in notebook has not worked since 5.10

asked 2014-09-21 00:15:46 -0500

BobB gravatar image

This has been reported in 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


This is also reported at . 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 07:35:38 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-09-22 07:36:11 -0500

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


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 11:38:16 -0500 )edit

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

kcrisman gravatar imagekcrisman ( 2014-10-18 19:36:06 -0500 )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



Asked: 2014-09-21 00:15:46 -0500

Seen: 79 times

Last updated: Sep 22 '14