ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 19 Oct 2014 02:36:06 +0200Attaching files in notebook has not worked since 5.10https://ask.sagemath.org/question/24222/attaching-files-in-notebook-has-not-worked-since-510/ 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?Sun, 21 Sep 2014 07:15:46 +0200https://ask.sagemath.org/question/24222/attaching-files-in-notebook-has-not-worked-since-510/Comment by kcrisman for <p>This has been reported in <a href="http://trac.sagemath.org/ticket/15308">http://trac.sagemath.org/ticket/15308</a>. 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.</p>
<p>There is a comment that a workaround might be:</p>
<p>"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 *"</p>
<p>Can anyone help with telling me how to make use of this suggestion?</p>
https://ask.sagemath.org/question/24222/attaching-files-in-notebook-has-not-worked-since-510/?comment=24245#post-id-24245This 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.Mon, 22 Sep 2014 14:35:38 +0200https://ask.sagemath.org/question/24222/attaching-files-in-notebook-has-not-worked-since-510/?comment=24245#post-id-24245Answer by kcrisman for <p>This has been reported in <a href="http://trac.sagemath.org/ticket/15308">http://trac.sagemath.org/ticket/15308</a>. 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.</p>
<p>There is a comment that a workaround might be:</p>
<p>"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 *"</p>
<p>Can anyone help with telling me how to make use of this suggestion?</p>
https://ask.sagemath.org/question/24222/attaching-files-in-notebook-has-not-worked-since-510/?answer=24246#post-id-24246A 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. Mon, 22 Sep 2014 14:36:11 +0200https://ask.sagemath.org/question/24222/attaching-files-in-notebook-has-not-worked-since-510/?answer=24246#post-id-24246Comment by kcrisman for <p>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. </p>
https://ask.sagemath.org/question/24222/attaching-files-in-notebook-has-not-worked-since-510/?comment=24530#post-id-24530Holy recursion, Batman! Glad it worked for you, though.Sun, 19 Oct 2014 02:36:06 +0200https://ask.sagemath.org/question/24222/attaching-files-in-notebook-has-not-worked-since-510/?comment=24530#post-id-24530Comment by BobB for <p>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. </p>
https://ask.sagemath.org/question/24222/attaching-files-in-notebook-has-not-worked-since-510/?comment=24527#post-id-24527It 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".Sat, 18 Oct 2014 18:38:16 +0200https://ask.sagemath.org/question/24222/attaching-files-in-notebook-has-not-worked-since-510/?comment=24527#post-id-24527