[sage-support] Re: attach works in command line but not in notebook

2009-02-08 Thread Marshall Hampton
OK, this is now trac ticket #5206. -M. Hampton On Feb 8, 4:09 am, ricardomayerb wrote: > Thanks, Adrian, Marshall. > > I can confirm that it has something to do with carriage return. I can > summarize things this way: > > --> using quotes around the path didn't solve the problem > > --> changi

[sage-support] Re: attach works in command line but not in notebook

2009-02-07 Thread ricardomayerb
Thanks, Adrian, Marshall. I can confirm that it has something to do with carriage return. I can summarize things this way: --> using quotes around the path didn't solve the problem --> changing the file extension of the file to .sage DOES solve the problem (great!!! thanks Marshall!) --> my fi

[sage-support] Re: attach works in command line but not in notebook

2009-02-07 Thread adrian
I am sorry, I read it wrong; you are indeed giving the full path. Something I was thinking is that it could be related to what happens, in addition to what others have commented is: 1) The error is "Syntax error" not "File not found", so maybe the quotes arround the path would work. 2) The file

[sage-support] Re: attach works in command line but not in notebook

2009-02-07 Thread Marshall Hampton
I think I ran into this last week. It might be that the problem is different types of newline/carriage return tickets - i.e. what in python are represented by '\n' and '\r'. I think that attach has trouble with .py files that have both kinds of newlines. For some reason this does not plague .sa

[sage-support] Re: attach works in command line but not in notebook

2009-02-07 Thread John H Palmieri
On Feb 7, 5:37 am, ricardomayerb wrote: > Thank you, Adrian. > > But I think I gave the full path when I used the command: > > attach /media/disk/thesiswork/thesis2009/sage/src/sympy_files/ > thesis_sympy_2009.py Try quotes: attach "/media/disk/thesiswork/thesis2009/sage/src/sympy_files/ thesis

[sage-support] Re: attach works in command line but not in notebook

2009-02-07 Thread ricardomayerb
Thank you, Adrian. But I think I gave the full path when I used the command: attach /media/disk/thesiswork/thesis2009/sage/src/sympy_files/ thesis_sympy_2009.py but it did not worked in notebook mode (but happens to work perfectly in command-line mode, I just tried it) Maybe the way to go, for

[sage-support] Re: attach works in command line but not in notebook

2009-02-06 Thread adrian
You need to give the full path if you are in the notebook. If you strongly need to not to give the full path you could run the command $mkdir (where your files are)/sagenotebook $sage -notebook directory="Where your files are/sagenotebook" The disadvantage is that this will create another server,