[sage-support] Re: Using Sage on Windows

2008-10-29 Thread Justin C. Walker


On Oct 27, 2008, at 23:32 , William Stein wrote:


 On Mon, Oct 27, 2008 at 7:26 PM, Jason Grout
 [EMAIL PROTECTED] wrote:

 Justin C. Walker wrote:
[snip]
 I believe that it will be uploaded/downloaded to the $DATA  
 directory, so
 it could be attached with:

 attach $DATA/filename.sage

 I haven't tried, it, though.

 You can upload a file just like an image into a given worksheet,
 and it appears in the data directory.  Then I think you can do

   attach filename.sage

 (without the $DATA).  I'm pretty sure that works in
 recent versions of Sage.

I did a little more poking today, based on helpful comments from  
William, Jason, and Timothy.  Part of my problem is I can't read  
Japanese so well, so the going is slow :-}

After a little probing, I think I understand the way it works.  I have  
a couple of questions to clarify a few points:

  - I use the Data popup to get the file in question
from the client (windows system) to the server
(VMWare/Linux virtual system).  The resulting webpage
says that I can refer to the newly uploaded file by
DATA+foo, foo being the name of the file.
When I subsequently did an attach from the notebook,
I just typed attach foo and it worked.

Question: When do I use DATA+?

  - To develop sage code (i.e., stuff in .sage files),
there seems to be two ways to go:
1. Get an ssh client and ssh into the VMWare system,
   and use Linux editors.  The 'attach' will keep
   reloading the modified file.
2. Use a windows editor, and repeatedly upload and
   save the file.  The 'attach' will keep reloading
   the modified file.

Question: Is this correct?

Thanks as always.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
---



--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage on Windows

2008-10-29 Thread William Stein

On Wed, Oct 29, 2008 at 9:33 PM, Justin C. Walker [EMAIL PROTECTED] wrote:


 On Oct 27, 2008, at 23:32 , William Stein wrote:


 On Mon, Oct 27, 2008 at 7:26 PM, Jason Grout
 [EMAIL PROTECTED] wrote:

 Justin C. Walker wrote:
 [snip]
 I believe that it will be uploaded/downloaded to the $DATA
 directory, so
 it could be attached with:

 attach $DATA/filename.sage

 I haven't tried, it, though.

 You can upload a file just like an image into a given worksheet,
 and it appears in the data directory.  Then I think you can do

   attach filename.sage

 (without the $DATA).  I'm pretty sure that works in
 recent versions of Sage.

 I did a little more poking today, based on helpful comments from
 William, Jason, and Timothy.  Part of my problem is I can't read
 Japanese so well, so the going is slow :-}

 After a little probing, I think I understand the way it works.  I have
 a couple of questions to clarify a few points:

  - I use the Data popup to get the file in question
from the client (windows system) to the server
(VMWare/Linux virtual system).  The resulting webpage
says that I can refer to the newly uploaded file by
DATA+foo, foo being the name of the file.
When I subsequently did an attach from the notebook,
I just typed attach foo and it worked.

Yep, because I added some code recently so that would
just work.  Doing attach DATA+foo won't, since attach
isn't smart enough to evaluate it's arguments.

Question: When do I use DATA+?

If you attached e.g., a big table of numbers foo.dat, and
in your python code wanted to do

  open('foo.dat').read()

it would fail, since the open command is not run in the
DATA directory.  Instead do
  open(DATA + '/foo.dat').read()


  - To develop sage code (i.e., stuff in .sage files),
there seems to be two ways to go:
1. Get an ssh client and ssh into the VMWare system,
   and use Linux editors.  The 'attach' will keep
   reloading the modified file.

True.

2. Use a windows editor, and repeatedly upload and
   save the file.  The 'attach' will keep reloading
   the modified file.

True.

Question: Is this correct?

3. There is also a way to edit a file under Windows and have
it automatically get uploaded via scp into the virtual machine
whenever it is saved.   I think http://winscp.net nicely supports
this.

4. Using VMware workstation's shared folders feature, which
makes it so sage under vmware can read/write the files
that you have under windows, then use a standard windows
editor on those windows files.

If you can set it up, I think 4 is the best.

william


 Thanks as always.

 Justin

 --
 Justin C. Walker, Curmudgeon at Large
 Institute for the Absorption of Federal Funds
 ---
 My wife 'n kids 'n dogs are gone,
 I can't get Jesus on the phone,
 But Ol' Milwaukee's Best is my best friend.
 ---



 




-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage on Windows

2008-10-28 Thread William Stein

On Mon, Oct 27, 2008 at 7:26 PM, Jason Grout
[EMAIL PROTECTED] wrote:

 Justin C. Walker wrote:

 On Oct 27, 2008, at 17:32 , Jason Grout wrote:

 Justin C. Walker wrote:
 Thanks, William,

 On Oct 27, 2008, at 4:26 PM, William Stein wrote:
 On Mon, Oct 27, 2008 at 4:23 PM, Justin C. Walker [EMAIL PROTECTED]
 wrote:
 I am helping someone who has a Windows system, and wants to use
 Sage.

 She has the VMWare gizmo set up and working fine.  I have a silly
 problem, due to my long history of Windows Rejection: I have a file
 on Windows that I want to attach in the Sage notebook.  Can
 that be
 done?  The obvious doesn't work (/home/user/D:/Documents/... not
 found).
 It's possible but you have to set up some sort of sharing
 between Windows and VMware.  I.e., the Windows filesystem
 (or some subset of it) has to be made available to vmware.
 This is I think very easy in VMware Workstation via menus.  I don't
 know
 if it is easy or not in VMware player.  I don't actually have access
 to a windows machine right now, so i can't give step-by-step
 directions.  I hope somebody else can promptly respond to
 this email who can.
 I'll poke at VMWare when I see her next.  If anyone has some good
 ideas, I'd love to hear `em.

 Can't you upload the file as a data file and then attach it from
 there?  That way everything is done from the notebook.

 I wasn't sure that would work.  It was not clear to me where the
 upload/download commands were operating.  I will give that a shot.

 I believe that it will be uploaded/downloaded to the $DATA directory, so
 it could be attached with:

 attach $DATA/filename.sage

 I haven't tried, it, though.

You can upload a file just like an image into a given worksheet,
and it appears in the data directory.  Then I think you can do

   attach filename.sage

(without the $DATA).  I'm pretty sure that works in
recent versions of Sage.

 -- William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage on Windows

2008-10-27 Thread William Stein

On Mon, Oct 27, 2008 at 4:23 PM, Justin C. Walker [EMAIL PROTECTED] wrote:

 Hi, all,

 I am helping someone who has a Windows system, and wants to use Sage.

 She has the VMWare gizmo set up and working fine.  I have a silly
 problem, due to my long history of Windows Rejection: I have a file
 on Windows that I want to attach in the Sage notebook.  Can that be
 done?  The obvious doesn't work (/home/user/D:/Documents/... not
 found).

 Suggestions?  Pointers?

It's possible but you have to set up some sort of sharing
between Windows and VMware.  I.e., the Windows filesystem
(or some subset of it) has to be made available to vmware.
This is I think very easy in VMware Workstation via menus.  I don't know
if it is easy or not in VMware player.  I don't actually have access
to a windows machine right now, so i can't give step-by-step
directions.  I hope somebody else can promptly respond to
this email who can.

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage on Windows

2008-10-27 Thread Justin C. Walker

Thanks, William,

On Oct 27, 2008, at 4:26 PM, William Stein wrote:
 On Mon, Oct 27, 2008 at 4:23 PM, Justin C. Walker [EMAIL PROTECTED]  
 wrote:
 I am helping someone who has a Windows system, and wants to use Sage.

 She has the VMWare gizmo set up and working fine.  I have a silly
 problem, due to my long history of Windows Rejection: I have a file
 on Windows that I want to attach in the Sage notebook.  Can that be
 done?  The obvious doesn't work (/home/user/D:/Documents/... not
 found).

 It's possible but you have to set up some sort of sharing
 between Windows and VMware.  I.e., the Windows filesystem
 (or some subset of it) has to be made available to vmware.
 This is I think very easy in VMware Workstation via menus.  I don't  
 know
 if it is easy or not in VMware player.  I don't actually have access
 to a windows machine right now, so i can't give step-by-step
 directions.  I hope somebody else can promptly respond to
 this email who can.

I'll poke at VMWare when I see her next.  If anyone has some good  
ideas, I'd love to hear `em.

Justin

--
Justin C. Walker, Curmudgeon-At-Large, Director
Institute for the Enhancement of the Director's Income

The path of least resistance:
it's not just for electricity any more.





--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage on Windows

2008-10-27 Thread Jason Grout

Justin C. Walker wrote:
 Thanks, William,
 
 On Oct 27, 2008, at 4:26 PM, William Stein wrote:
 On Mon, Oct 27, 2008 at 4:23 PM, Justin C. Walker [EMAIL PROTECTED]  
 wrote:
 I am helping someone who has a Windows system, and wants to use Sage.

 She has the VMWare gizmo set up and working fine.  I have a silly
 problem, due to my long history of Windows Rejection: I have a file
 on Windows that I want to attach in the Sage notebook.  Can that be
 done?  The obvious doesn't work (/home/user/D:/Documents/... not
 found).
 
 It's possible but you have to set up some sort of sharing
 between Windows and VMware.  I.e., the Windows filesystem
 (or some subset of it) has to be made available to vmware.
 This is I think very easy in VMware Workstation via menus.  I don't  
 know
 if it is easy or not in VMware player.  I don't actually have access
 to a windows machine right now, so i can't give step-by-step
 directions.  I hope somebody else can promptly respond to
 this email who can.
 
 I'll poke at VMWare when I see her next.  If anyone has some good  
 ideas, I'd love to hear `em.


Can't you upload the file as a data file and then attach it from 
there?  That way everything is done from the notebook.

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage on Windows

2008-10-27 Thread Timothy Clemans

You can also SFTP into the virtual machine. I remember seeing that in
the readme.

On Mon, Oct 27, 2008 at 8:32 PM, Jason Grout
[EMAIL PROTECTED] wrote:

 Justin C. Walker wrote:
 Thanks, William,

 On Oct 27, 2008, at 4:26 PM, William Stein wrote:
 On Mon, Oct 27, 2008 at 4:23 PM, Justin C. Walker [EMAIL PROTECTED]
 wrote:
 I am helping someone who has a Windows system, and wants to use Sage.

 She has the VMWare gizmo set up and working fine.  I have a silly
 problem, due to my long history of Windows Rejection: I have a file
 on Windows that I want to attach in the Sage notebook.  Can that be
 done?  The obvious doesn't work (/home/user/D:/Documents/... not
 found).

 It's possible but you have to set up some sort of sharing
 between Windows and VMware.  I.e., the Windows filesystem
 (or some subset of it) has to be made available to vmware.
 This is I think very easy in VMware Workstation via menus.  I don't
 know
 if it is easy or not in VMware player.  I don't actually have access
 to a windows machine right now, so i can't give step-by-step
 directions.  I hope somebody else can promptly respond to
 this email who can.

 I'll poke at VMWare when I see her next.  If anyone has some good
 ideas, I'd love to hear `em.


 Can't you upload the file as a data file and then attach it from
 there?  That way everything is done from the notebook.

 Jason


 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage on Windows

2008-10-27 Thread Justin C. Walker


On Oct 27, 2008, at 17:32 , Jason Grout wrote:


 Justin C. Walker wrote:
 Thanks, William,

 On Oct 27, 2008, at 4:26 PM, William Stein wrote:
 On Mon, Oct 27, 2008 at 4:23 PM, Justin C. Walker [EMAIL PROTECTED]
 wrote:
 I am helping someone who has a Windows system, and wants to use  
 Sage.

 She has the VMWare gizmo set up and working fine.  I have a silly
 problem, due to my long history of Windows Rejection: I have a file
 on Windows that I want to attach in the Sage notebook.  Can  
 that be
 done?  The obvious doesn't work (/home/user/D:/Documents/... not
 found).

 It's possible but you have to set up some sort of sharing
 between Windows and VMware.  I.e., the Windows filesystem
 (or some subset of it) has to be made available to vmware.
 This is I think very easy in VMware Workstation via menus.  I don't
 know
 if it is easy or not in VMware player.  I don't actually have access
 to a windows machine right now, so i can't give step-by-step
 directions.  I hope somebody else can promptly respond to
 this email who can.

 I'll poke at VMWare when I see her next.  If anyone has some good
 ideas, I'd love to hear `em.


 Can't you upload the file as a data file and then attach it from
 there?  That way everything is done from the notebook.

I wasn't sure that would work.  It was not clear to me where the  
upload/download commands were operating.  I will give that a shot.

To make sure I know what's going on here, the file to be attached is  
currently sitting in the Windows file system, and needs to be in the  
VMWare/Linux file system, correct?

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
---



--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage on Windows

2008-10-27 Thread Justin C. Walker


On Oct 27, 2008, at 17:50 , Timothy Clemans wrote:


 You can also SFTP into the virtual machine. I remember seeing that in
 the readme.

That's worth a shot.  Thanks!

Looks like the 'readme' on the Sage site details the necessary steps.

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
---
Nobody knows the trouble I've been
---




--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Using Sage on Windows

2008-10-27 Thread Jason Grout

Justin C. Walker wrote:
 
 On Oct 27, 2008, at 17:32 , Jason Grout wrote:
 
 Justin C. Walker wrote:
 Thanks, William,

 On Oct 27, 2008, at 4:26 PM, William Stein wrote:
 On Mon, Oct 27, 2008 at 4:23 PM, Justin C. Walker [EMAIL PROTECTED]
 wrote:
 I am helping someone who has a Windows system, and wants to use  
 Sage.

 She has the VMWare gizmo set up and working fine.  I have a silly
 problem, due to my long history of Windows Rejection: I have a file
 on Windows that I want to attach in the Sage notebook.  Can  
 that be
 done?  The obvious doesn't work (/home/user/D:/Documents/... not
 found).
 It's possible but you have to set up some sort of sharing
 between Windows and VMware.  I.e., the Windows filesystem
 (or some subset of it) has to be made available to vmware.
 This is I think very easy in VMware Workstation via menus.  I don't
 know
 if it is easy or not in VMware player.  I don't actually have access
 to a windows machine right now, so i can't give step-by-step
 directions.  I hope somebody else can promptly respond to
 this email who can.
 I'll poke at VMWare when I see her next.  If anyone has some good
 ideas, I'd love to hear `em.

 Can't you upload the file as a data file and then attach it from
 there?  That way everything is done from the notebook.
 
 I wasn't sure that would work.  It was not clear to me where the  
 upload/download commands were operating.  I will give that a shot.

I believe that it will be uploaded/downloaded to the $DATA directory, so 
it could be attached with:

attach $DATA/filename.sage

I haven't tried, it, though.

Jason


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---