Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-08 Thread Gary Ruben
Wayne Watson wrote:
> I thought the console was the only way to use IPython. I go to 
> Start->Allprograms->IPython, and select IPython. Oh, I see *Console" is 
> something of a replacement for the Win Cmd Console. Is there some site 
> that shows off it's features?

Not that I know of.

By the way, in case you haven't set it up a shortcut to Console that 
starts up IPython, I did it like this:

I created a shortcut to console in my start menu:

Properties|Shortcut
Target: "C:\Program Files\Console2\Console.exe"
Start in: "C:\Program Files\Console2"

Then in Console, under Edit|Settings|Tabs

Create a tab with
Main|Title & icon|Title: iPython
Shell|Shell: C:\PYTHON25\Scripts\ipython.exe -pylab -wthread -p pylab
Shell|Startup dir: C:\Python25

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
I thought the console was the only way to use IPython. I go to 
Start->Allprograms->IPython, and select IPython. Oh, I see *Console" is 
something of a replacement for the Win Cmd Console. Is there some site 
that shows off it's features?

Gary Ruben wrote:
> In Windows I recommend running iPython inside Console 
> <http://sourceforge.net/projects/console/>
> particularly for its vastly improved copy and pasting.
>
> Gary R.
>
> phob...@geosyntec.com wrote:
>   
>> Third Google result for "copy paste in DOS prompt"
>> http://www.copy--paste.org/copy-paste-between-dos-windows.htm
>>
>> Note that right-clicking is going to execute behavior, not bring up a 
>> contextual menu.
>>
>> -p
>>
>> 
>>> -Original Message-
>>> From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net]
>>> Sent: Monday, December 07, 2009 12:57 PM
>>> To: Gary Pajer
>>> Cc: matplotlib-users@lists.sourceforge.net
>>> Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to
>>> Get Started on IPython
>>>
>>> Right-click does nothing on the IPython window.
>>>
>>> The Windows command console is, I think, a lost cause all together. I've
>>> tried a right-click on it with the same result as in IPython.
>>> I'm using Win XP, and I hope they improve on Win 7, which I plan to
>>> install on all my machines this month.
>>>
>>>   
>
> --
> Return on Information:
> Google Enterprise Search pays you back
> Get the facts.
> http://p.sf.net/sfu/google-dev2dev
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>   

-- 
   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

 (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet  

 "... humans'innate skills with numbers isn't much
  better than that of rats and dolphins." 
   -- Stanislas Dehaene, neurosurgeon 
 
Web Page: 


--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
OK, here I go. Quick Edit is checked, and I'm running from what looks 
like the Win XP command console. I am not in full screen mode. I've 
applied changes to the window. It has scroll bars side and bottom. I've 
moused the area, and now am going to Edit on the window menu. It works!  
I just pasted it into a txt file. Thanks. Pretty convoluted, but it works.

Is it possible to paste from outside? For example copy and paste from a 
txt file.

phob...@geosyntec.com wrote:
> Third Google result for "copy paste in DOS prompt"
> http://www.copy--paste.org/copy-paste-between-dos-windows.htm
>
> Note that right-clicking is going to execute behavior, not bring up a 
> contextual menu.
>
> -p
>
>   
>> -Original Message-
>> From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net]
>> Sent: Monday, December 07, 2009 12:57 PM
>> To: Gary Pajer
>> Cc: matplotlib-users@lists.sourceforge.net
>> Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to
>> Get Started on IPython
>>
>> Right-click does nothing on the IPython window.
>>
>> The Windows command console is, I think, a lost cause all together. I've
>> tried a right-click on it with the same result as in IPython.
>> I'm using Win XP, and I hope they improve on Win 7, which I plan to
>> install on all my machines this month.
>>
>> Gary Pajer wrote:
>> 
>>> On Mon, Dec 7, 2009 at 11:41 AM, Wayne Watson
>>> mailto:sierra_mtnv...@sbcglobal.net>>
>>> wrote:
>>>
>>> Good. Thanks. Interesting that ls and pwd are used for Win, but
>>>   
>> that's
>> 
>>> fine. How do I copy parts of the window?  All I can do at the
>>> moment is
>>> sweep out a rectangular area with the mouse. It looks like I
>>> underestimated the need for  automagic.
>>>
>>>
>>>
>>> Copy and paste from a Windows command shell is different that copy and
>>> paste from *nix command shell.
>>>
>>> Right-click in the command window
>>> Choose Mark from the drop-down menu
>>> Select the (rectangular) region of text you want to copy.
>>> Hit Return.
>>>
>>> That does a copy operation.  Then go to your other application, and
>>> paste however you like.
>>>
>>>
>>>
>>>
>>>
>>> David Arnold wrote:
>>> > Depends on whether "automagic" is enabled or not. If automagic
>>> is OFF,
>>> > you  need to enter the %, as in %cd. If automagic is ON (the
>>> default),
>>> > then you don't need to enter the %, as in cd.
>>> >
>>> > automagic can be toggled on and off as follows:
>>> >
>>> > In [8]: automagic
>>> >
>>> > Automagic is OFF, % prefix IS needed for magic functions.
>>> >
>>> > In [9]: %automagic
>>> >
>>> > Automagic is ON, % prefix NOT needed for magic functions.
>>> >
>>> > On my mac, I can change to my "home" directory as follows:
>>> >
>>> > In [10]: cd
>>> > /Users/darnold
>>> >
>>> > I can list the files in this directory with:
>>> >
>>> > In [11]: ls
>>> > Desktop/Movies/context/
>>> > Documents/Music/java.log.344
>>> > Downloads/NetBeansProjects/java.log.415
>>> > Dropbox/Pictures/luatex-cache/
>>> > Library/Public/matlab_crash_dump.344
>>> > LizThesis/Sites/matlab_crash_dump.415
>>> >
>>> > I can cd into my Sites folder with:
>>> >
>>> > In [12]: cd Sites
>>> > /Users/darnold/Sites
>>> >
>>> > I can get the current directory with:
>>> >
>>> > In [13]: pwd
>>> > Out[13]: '/Users/darnold/Sites'
>>> >
>>> > I can move up a directory level with:
>>> >
>>> > In [14]: cd ..
>>> > /Users/darnold
>>> >
>>> >
>>> > Hope this helps.
>>> >
>>> > D.
>>> >
>>> >
>>> > On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
>>> >
>

Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Gary Ruben
In Windows I recommend running iPython inside Console 
<http://sourceforge.net/projects/console/>
particularly for its vastly improved copy and pasting.

Gary R.

phob...@geosyntec.com wrote:
> Third Google result for "copy paste in DOS prompt"
> http://www.copy--paste.org/copy-paste-between-dos-windows.htm
> 
> Note that right-clicking is going to execute behavior, not bring up a 
> contextual menu.
> 
> -p
> 
>> -Original Message-
>> From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net]
>> Sent: Monday, December 07, 2009 12:57 PM
>> To: Gary Pajer
>> Cc: matplotlib-users@lists.sourceforge.net
>> Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to
>> Get Started on IPython
>>
>> Right-click does nothing on the IPython window.
>>
>> The Windows command console is, I think, a lost cause all together. I've
>> tried a right-click on it with the same result as in IPython.
>> I'm using Win XP, and I hope they improve on Win 7, which I plan to
>> install on all my machines this month.
>>

--
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread PHobson
Third Google result for "copy paste in DOS prompt"
http://www.copy--paste.org/copy-paste-between-dos-windows.htm

Note that right-clicking is going to execute behavior, not bring up a 
contextual menu.

-p

> -Original Message-
> From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net]
> Sent: Monday, December 07, 2009 12:57 PM
> To: Gary Pajer
> Cc: matplotlib-users@lists.sourceforge.net
> Subject: Re: [Matplotlib-users] I Need a Couple of Tips for Windows to
> Get Started on IPython
> 
> Right-click does nothing on the IPython window.
> 
> The Windows command console is, I think, a lost cause all together. I've
> tried a right-click on it with the same result as in IPython.
> I'm using Win XP, and I hope they improve on Win 7, which I plan to
> install on all my machines this month.
> 
> Gary Pajer wrote:
> > On Mon, Dec 7, 2009 at 11:41 AM, Wayne Watson
> > mailto:sierra_mtnv...@sbcglobal.net>>
> > wrote:
> >
> > Good. Thanks. Interesting that ls and pwd are used for Win, but
> that's
> > fine. How do I copy parts of the window?  All I can do at the
> > moment is
> > sweep out a rectangular area with the mouse. It looks like I
> > underestimated the need for  automagic.
> >
> >
> >
> > Copy and paste from a Windows command shell is different that copy and
> > paste from *nix command shell.
> >
> > Right-click in the command window
> > Choose Mark from the drop-down menu
> > Select the (rectangular) region of text you want to copy.
> > Hit Return.
> >
> > That does a copy operation.  Then go to your other application, and
> > paste however you like.
> >
> >
> >
> >
> >
> > David Arnold wrote:
> > > Depends on whether "automagic" is enabled or not. If automagic
> > is OFF,
> > > you  need to enter the %, as in %cd. If automagic is ON (the
> > default),
> > > then you don't need to enter the %, as in cd.
> > >
> > > automagic can be toggled on and off as follows:
> > >
> > > In [8]: automagic
> > >
> > > Automagic is OFF, % prefix IS needed for magic functions.
> > >
> > > In [9]: %automagic
> > >
> > > Automagic is ON, % prefix NOT needed for magic functions.
> > >
> > > On my mac, I can change to my "home" directory as follows:
> > >
> > > In [10]: cd
> > > /Users/darnold
> > >
> > > I can list the files in this directory with:
> > >
> > > In [11]: ls
> > > Desktop/Movies/context/
> > > Documents/Music/java.log.344
> > > Downloads/NetBeansProjects/java.log.415
> > > Dropbox/Pictures/luatex-cache/
> > > Library/Public/matlab_crash_dump.344
> > > LizThesis/Sites/matlab_crash_dump.415
> > >
> > > I can cd into my Sites folder with:
> > >
> > > In [12]: cd Sites
> > > /Users/darnold/Sites
> > >
> > > I can get the current directory with:
> > >
> > > In [13]: pwd
> > > Out[13]: '/Users/darnold/Sites'
> > >
> > > I can move up a directory level with:
> > >
> > > In [14]: cd ..
> > > /Users/darnold
> > >
> > >
> > > Hope this helps.
> > >
> > > D.
> > >
> > >
> > > On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
> > >
> > >> I've seen the tutorial, but need something more. How do I know
> what
> > >> folder I'm in? How do I move from where I am to, for example,
> > >> C:\abc\def? So far I've tried various combinations like this:
> > >>
> > >> cd ..
> > >> cd C:\
> > >> pwd (yes, I know it's not windows)
> > >>
> > >> I tried %cd .., and that may have moved me but I seem to get
> > back to the
> > >> same place.
> > >>
> > >> I seem to be in  C:\Documents and Settings\administrator. If I
> > doa %cp
> > >> ..\\ it looks like I get to C:\, but follwing that 

Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
Right-click does nothing on the IPython window.

The Windows command console is, I think, a lost cause all together. I've 
tried a right-click on it with the same result as in IPython.
I'm using Win XP, and I hope they improve on Win 7, which I plan to 
install on all my machines this month.

Gary Pajer wrote:
> On Mon, Dec 7, 2009 at 11:41 AM, Wayne Watson 
> mailto:sierra_mtnv...@sbcglobal.net>> 
> wrote:
>
> Good. Thanks. Interesting that ls and pwd are used for Win, but that's
> fine. How do I copy parts of the window?  All I can do at the
> moment is
> sweep out a rectangular area with the mouse. It looks like I
> underestimated the need for  automagic.
>
>
>
> Copy and paste from a Windows command shell is different that copy and 
> paste from *nix command shell.
>
> Right-click in the command window
> Choose Mark from the drop-down menu
> Select the (rectangular) region of text you want to copy.
> Hit Return.
>
> That does a copy operation.  Then go to your other application, and 
> paste however you like.
>
>
>  
>
>
> David Arnold wrote:
> > Depends on whether "automagic" is enabled or not. If automagic
> is OFF,
> > you  need to enter the %, as in %cd. If automagic is ON (the
> default),
> > then you don't need to enter the %, as in cd.
> >
> > automagic can be toggled on and off as follows:
> >
> > In [8]: automagic
> >
> > Automagic is OFF, % prefix IS needed for magic functions.
> >
> > In [9]: %automagic
> >
> > Automagic is ON, % prefix NOT needed for magic functions.
> >
> > On my mac, I can change to my "home" directory as follows:
> >
> > In [10]: cd
> > /Users/darnold
> >
> > I can list the files in this directory with:
> >
> > In [11]: ls
> > Desktop/Movies/context/
> > Documents/Music/java.log.344
> > Downloads/NetBeansProjects/java.log.415
> > Dropbox/Pictures/luatex-cache/
> > Library/Public/matlab_crash_dump.344
> > LizThesis/Sites/matlab_crash_dump.415
> >
> > I can cd into my Sites folder with:
> >
> > In [12]: cd Sites
> > /Users/darnold/Sites
> >
> > I can get the current directory with:
> >
> > In [13]: pwd
> > Out[13]: '/Users/darnold/Sites'
> >
> > I can move up a directory level with:
> >
> > In [14]: cd ..
> > /Users/darnold
> >
> >
> > Hope this helps.
> >
> > D.
> >
> >
> > On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
> >
> >> I've seen the tutorial, but need something more. How do I know what
> >> folder I'm in? How do I move from where I am to, for example,
> >> C:\abc\def? So far I've tried various combinations like this:
> >>
> >> cd ..
> >> cd C:\
> >> pwd (yes, I know it's not windows)
> >>
> >> I tried %cd .., and that may have moved me but I seem to get
> back to the
> >> same place.
> >>
> >> I seem to be in  C:\Documents and Settings\administrator. If I
> doa %cp
> >> ..\\ it looks like I get to C:\, but follwing that with pwd
> gets me back
> >> to where I started--C:\Documents and Settings\administrator.
> >>
> >> If I want to execute a program with %run, I need to be where
> abc.py is
> >> or, perhaps say something like %run C:\myPyPrograms\abc.py.
> >> Dir doesn't work and I haven't been able to even see what's in the
> >> folder.
> >>
> >>
> >> --
> >>   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
> >>
> >> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
> >>  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
> >>
> >> "... humans'innate skills with numbers isn't much
> >>  better than that of rats and dolphins."
> >>   -- Stanislas Dehaene, neurosurgeon
> >>
> >>Web Page:  >
> >>
> >>
> >>
> 
> --
> >>
> >> Join us December 9, 2009 for the Red Hat Virtual Experience,
> >> a free event focused on virtualization and cloud computing.
> >> Attend in-depth sessions from your desk. Your couch. Anywhere.
> >> http://p.sf.net/sfu/redhat-sfdev2dev
> >> ___
> >> Matplotlib-users mailing list
> >> Matplotlib-users@lists.sourceforge.net
> 
> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
> --
>   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>
> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>  Obz Site:  39° 15' 7" 

Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
Hi, I'm using IPython raw. I guess I'm not sure what a shell is in this
case. I used to work with Linux years ago and the shell concept was
clear there. I'm now simply a Win XP user. What advantages would be
available to use a shell?

In part of the thread above,(posted 57 minutes after the hour, I asked
how copy and paste operate? Quick IPyton seems to think it works quite
like a Win copy and paste. It doesn't work for me.

Below you've manage to post a session. How did that happen? Is there a
file that I can pick up that contains the log? From the ref manual, I
see this:
===


  Manual capture of command output¶
 


If the input line begins with two exclamation marks, !!, the command is
executed but its output is captured and returned as a python list, split
on newlines. Any output sent by the subprocess to standard error is
printed separately, so that the resulting list only captures standard
output. The !! syntax is a shorthand for the %sx magic command.

Finally, the %sc magic (short for ‘shell capture’) is similar to %sx,
but allowing more fine-grained control of the capture details, and ...
===end

Maybe this is somehow you did it?

phob...@geosyntec.com wrote:
> Wayne,
>
> Are you using the IPython shell? If so, cd, pwd, ls, etc will work just fine.
>
> If you using the standard python shell, AFAIK, you need to import the os 
> module and use that to navigate.
>
> Ipython session:
> C:\Documents and Settings\phobson>ipython
> Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
> Type "copyright", "credits" or "license" for more information.
>
> IPython 0.10 -- An enhanced Interactive Python.
> ? -> Introduction and overview of IPython's features.
> %quickref -> Quick reference.
> help  -> Python's own help system.
> object?   -> Details about 'object'. ?object also works, ?? prints more.
>
> In [1]: pwd
> Out[1]: 'C:\\Documents and Settings\\phobson'
>
> In [2]: cd c:\stuff\utils\py
> c:\stuff\utils\py
>
> In [3]: pwd
> Out[3]: 'c:\\stuff\\utils\\py'
>
> In [4]: cd c:\
> c:\
>
> In [5]: cd c:\stuff\utils\py
> c:\stuff\utils\py
>
> In [6]: ls *.pdf
>  Volume in drive C has no label.
>  Volume Serial Number is 24FD-DA13
>
>  Directory of c:\stuff\utils\py
>
> 09/11/2009  11:39 AM 1,515,182 elev_test5.pdf
> 10/18/2009  01:06 PM   147,663 frLarch_elev.pdf
> 05/12/2009  10:30 AM28,029 gear.pdf
> 03/11/2009  09:56 AM30,622 test.pdf
> 08/27/2009  09:18 AM17,175 tidal_cdf.pdf
> 11/16/2009  08:20 AM   118,902 zoom_test.pdf
> 11/16/2009  08:18 AM   124,000 zoom_test_final.pdf
>7 File(s)  1,981,573 bytes
>0 Dir(s)  82,894,716,928 bytes free
>
> Paul M. Hobson  
> Senior Staff Engineer
>   

-- 
   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

 (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

 "... humans'innate skills with numbers isn't much
  better than that of rats and dolphins."
   -- Stanislas Dehaene, neurosurgeon

Web Page: 



--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Gary Pajer
On Mon, Dec 7, 2009 at 11:41 AM, Wayne Watson
wrote:

> Good. Thanks. Interesting that ls and pwd are used for Win, but that's
> fine. How do I copy parts of the window?  All I can do at the moment is
> sweep out a rectangular area with the mouse. It looks like I
> underestimated the need for  automagic.
>


Copy and paste from a Windows command shell is different that copy and paste
from *nix command shell.

Right-click in the command window
Choose Mark from the drop-down menu
Select the (rectangular) region of text you want to copy.
Hit Return.

That does a copy operation.  Then go to your other application, and paste
however you like.




>
> David Arnold wrote:
> > Depends on whether "automagic" is enabled or not. If automagic is OFF,
> > you  need to enter the %, as in %cd. If automagic is ON (the default),
> > then you don't need to enter the %, as in cd.
> >
> > automagic can be toggled on and off as follows:
> >
> > In [8]: automagic
> >
> > Automagic is OFF, % prefix IS needed for magic functions.
> >
> > In [9]: %automagic
> >
> > Automagic is ON, % prefix NOT needed for magic functions.
> >
> > On my mac, I can change to my "home" directory as follows:
> >
> > In [10]: cd
> > /Users/darnold
> >
> > I can list the files in this directory with:
> >
> > In [11]: ls
> > Desktop/Movies/context/
> > Documents/Music/java.log.344
> > Downloads/NetBeansProjects/java.log.415
> > Dropbox/Pictures/luatex-cache/
> > Library/Public/matlab_crash_dump.344
> > LizThesis/Sites/matlab_crash_dump.415
> >
> > I can cd into my Sites folder with:
> >
> > In [12]: cd Sites
> > /Users/darnold/Sites
> >
> > I can get the current directory with:
> >
> > In [13]: pwd
> > Out[13]: '/Users/darnold/Sites'
> >
> > I can move up a directory level with:
> >
> > In [14]: cd ..
> > /Users/darnold
> >
> >
> > Hope this helps.
> >
> > D.
> >
> >
> > On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
> >
> >> I've seen the tutorial, but need something more. How do I know what
> >> folder I'm in? How do I move from where I am to, for example,
> >> C:\abc\def? So far I've tried various combinations like this:
> >>
> >> cd ..
> >> cd C:\
> >> pwd (yes, I know it's not windows)
> >>
> >> I tried %cd .., and that may have moved me but I seem to get back to the
> >> same place.
> >>
> >> I seem to be in  C:\Documents and Settings\administrator. If I doa %cp
> >> ..\\ it looks like I get to C:\, but follwing that with pwd gets me back
> >> to where I started--C:\Documents and Settings\administrator.
> >>
> >> If I want to execute a program with %run, I need to be where abc.py is
> >> or, perhaps say something like %run C:\myPyPrograms\abc.py.
> >> Dir doesn't work and I haven't been able to even see what's in the
> >> folder.
> >>
> >>
> >> --
> >>   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
> >>
> >> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
> >>  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
> >>
> >> "... humans'innate skills with numbers isn't much
> >>  better than that of rats and dolphins."
> >>   -- Stanislas Dehaene, neurosurgeon
> >>
> >>Web Page: 
> >>
> >>
> >>
> --
> >>
> >> Join us December 9, 2009 for the Red Hat Virtual Experience,
> >> a free event focused on virtualization and cloud computing.
> >> Attend in-depth sessions from your desk. Your couch. Anywhere.
> >> http://p.sf.net/sfu/redhat-sfdev2dev
> >> ___
> >> Matplotlib-users mailing list
> >> Matplotlib-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
> >
> >
>
> --
>   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>
> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
>
> "... humans'innate skills with numbers isn't much
>  better than that of rats and dolphins."
>   -- Stanislas Dehaene, neurosurgeon
>
>Web Page: 
>
>
>
> --
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-d

Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
Well, that's interesting, but how did you copy and paste?
Quick Python offers this, but no explanation how to copy and paste.
The %hist command can show you all previous input, without line numbers 
if desired (option -n) so you can directly copy and paste code either 
back in IPython or in a text editor. You can also save all your history 
by turning on logging via %logstart; these logs can later be either 
reloaded as IPython sessions or used as code for your programs.
Aside from that, here's an example of what I'd like to copy. If it 
doesn't make it through, it's just a screen capture of part of the 
window's contents show the result of ls, cd, etc.

Image above this.
Over and out ...

David Arnold wrote:
> In [13]: history
> 1 : #?edit
> 2 : hist
> 3 : a=12
> 4 : b=3
> 5 : c=4
> 6 : f=a*b+c
> 7 : hist
> 8 : _ip.magic("magic ")
> 9 : _ip.magic("automagic ")
> 10: _ip.magic("automagic ")
> 11: his 1-4
> 12: hist(1-4)
> 13: _ip.magic("history ")
>
> In [14]: edit 3-6
>
>
>
> On Dec 7, 2009, at 8:41 AM, Wayne Watson wrote:
>
>> Good. Thanks. Interesting that ls and pwd are used for Win, but 
>> that's fine. How do I copy parts of the window?  All I can do at the 
>> moment is sweep out a rectangular area with the mouse. It looks like 
>> I underestimated the need for  automagic.
>>
>> David Arnold wrote:
>>> Depends on whether "automagic" is enabled or not. If automagic is 
>>> OFF, you  need to enter the %, as in %cd. If automagic is ON (the 
>>> default), then you don't need to enter the %, as in cd.
>>>
>>> automagic can be toggled on and off as follows:
>>>
>>> In [8]: automagic
>>>
>>> Automagic is OFF, % prefix IS needed for magic functions.
>>>
>>> In [9]: %automagic
>>>
>>> Automagic is ON, % prefix NOT needed for magic functions.
>>>
>>> On my mac, I can change to my "home" directory as follows:
>>>
>>> In [10]: cd
>>> /Users/darnold
>>>
>>> I can list the files in this directory with:
>>>
>>> In [11]: ls
>>> Desktop/Movies/context/
>>> Documents/Music/java.log.344
>>> Downloads/NetBeansProjects/java.log.415
>>> Dropbox/Pictures/luatex-cache/
>>> Library/Public/matlab_crash_dump.344
>>> LizThesis/Sites/matlab_crash_dump.415
>>>
>>> I can cd into my Sites folder with:
>>>
>>> In [12]: cd Sites
>>> /Users/darnold/Sites
>>>
>>> I can get the current directory with:
>>>
>>> In [13]: pwd
>>> Out[13]: '/Users/darnold/Sites'
>>>
>>> I can move up a directory level with:
>>>
>>> In [14]: cd ..
>>> /Users/darnold
>>>
>>>
>>> Hope this helps.
>>>
>>> D.
>>>
>>>
>>> On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
>>>
 I've seen the tutorial, but need something more. How do I know what
 folder I'm in? How do I move from where I am to, for example,
 C:\abc\def? So far I've tried various combinations like this:

 cd ..
 cd C:\
 pwd (yes, I know it's not windows)

 I tried %cd .., and that may have moved me but I seem to get back 
 to the
 same place.

 I seem to be in  C:\Documents and Settings\administrator. If I doa %cp
 ..\\ it looks like I get to C:\, but follwing that with pwd gets me 
 back
 to where I started--C:\Documents and Settings\administrator.

 If I want to execute a program with %run, I need to be where abc.py is
 or, perhaps say something like %run C:\myPyPrograms\abc.py.
 Dir doesn't work and I haven't been able to even see what's in the 
 folder.


 -- 
  Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
 Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet

"... humans'innate skills with numbers isn't much
 better than that of rats and dolphins."
  -- Stanislas Dehaene, neurosurgeon

   Web Page: 


 --
  

 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing.
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>>
>>>
>>
>> -- 
>>  Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>
>>(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>> Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 
>> feet "... humans'innate skills with 
>> numbers isn't much
>> better than that of rats and 
>> dolphins."   -- Stanislas Dehaene, 
>> neurosurgeonWeb Page: 
>>
>
>

-- 
   W

Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-07 Thread Wayne Watson
Good. Thanks. Interesting that ls and pwd are used for Win, but that's 
fine. How do I copy parts of the window?  All I can do at the moment is 
sweep out a rectangular area with the mouse. It looks like I 
underestimated the need for  automagic.

David Arnold wrote:
> Depends on whether "automagic" is enabled or not. If automagic is OFF, 
> you  need to enter the %, as in %cd. If automagic is ON (the default), 
> then you don't need to enter the %, as in cd.
>
> automagic can be toggled on and off as follows:
>
> In [8]: automagic
>
> Automagic is OFF, % prefix IS needed for magic functions.
>
> In [9]: %automagic
>
> Automagic is ON, % prefix NOT needed for magic functions.
>
> On my mac, I can change to my "home" directory as follows:
>
> In [10]: cd
> /Users/darnold
>
> I can list the files in this directory with:
>
> In [11]: ls
> Desktop/Movies/context/
> Documents/Music/java.log.344
> Downloads/NetBeansProjects/java.log.415
> Dropbox/Pictures/luatex-cache/
> Library/Public/matlab_crash_dump.344
> LizThesis/Sites/matlab_crash_dump.415
>
> I can cd into my Sites folder with:
>
> In [12]: cd Sites
> /Users/darnold/Sites
>
> I can get the current directory with:
>
> In [13]: pwd
> Out[13]: '/Users/darnold/Sites'
>
> I can move up a directory level with:
>
> In [14]: cd ..
> /Users/darnold
>
>
> Hope this helps.
>
> D.
>
>
> On Dec 6, 2009, at 3:01 PM, Wayne Watson wrote:
>
>> I've seen the tutorial, but need something more. How do I know what
>> folder I'm in? How do I move from where I am to, for example,
>> C:\abc\def? So far I've tried various combinations like this:
>>
>> cd ..
>> cd C:\
>> pwd (yes, I know it's not windows)
>>
>> I tried %cd .., and that may have moved me but I seem to get back to the
>> same place.
>>
>> I seem to be in  C:\Documents and Settings\administrator. If I doa %cp
>> ..\\ it looks like I get to C:\, but follwing that with pwd gets me back
>> to where I started--C:\Documents and Settings\administrator.
>>
>> If I want to execute a program with %run, I need to be where abc.py is
>> or, perhaps say something like %run C:\myPyPrograms\abc.py.
>> Dir doesn't work and I haven't been able to even see what's in the 
>> folder.
>>
>>
>> -- 
>>   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
>>
>> (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>>  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
>>
>> "... humans'innate skills with numbers isn't much
>>  better than that of rats and dolphins."
>>   -- Stanislas Dehaene, neurosurgeon
>>
>>Web Page: 
>>
>>
>> --
>>  
>>
>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>> a free event focused on virtualization and cloud computing.
>> Attend in-depth sessions from your desk. Your couch. Anywhere.
>> http://p.sf.net/sfu/redhat-sfdev2dev
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

-- 
   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

 (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet  

 "... humans'innate skills with numbers isn't much
  better than that of rats and dolphins." 
   -- Stanislas Dehaene, neurosurgeon 
 
Web Page: 


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-06 Thread PHobson
Wayne,

Are you using the IPython shell? If so, cd, pwd, ls, etc will work just fine.

If you using the standard python shell, AFAIK, you need to import the os module 
and use that to navigate.

Ipython session:
C:\Documents and Settings\phobson>ipython
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help  -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

In [1]: pwd
Out[1]: 'C:\\Documents and Settings\\phobson'

In [2]: cd c:\stuff\utils\py
c:\stuff\utils\py

In [3]: pwd
Out[3]: 'c:\\stuff\\utils\\py'

In [4]: cd c:\
c:\

In [5]: cd c:\stuff\utils\py
c:\stuff\utils\py

In [6]: ls *.pdf
 Volume in drive C has no label.
 Volume Serial Number is 24FD-DA13

 Directory of c:\stuff\utils\py

09/11/2009  11:39 AM 1,515,182 elev_test5.pdf
10/18/2009  01:06 PM   147,663 frLarch_elev.pdf
05/12/2009  10:30 AM28,029 gear.pdf
03/11/2009  09:56 AM30,622 test.pdf
08/27/2009  09:18 AM17,175 tidal_cdf.pdf
11/16/2009  08:20 AM   118,902 zoom_test.pdf
11/16/2009  08:18 AM   124,000 zoom_test_final.pdf
   7 File(s)  1,981,573 bytes
   0 Dir(s)  82,894,716,928 bytes free

Paul M. Hobson  
Senior Staff Engineer
-- 
Geosyntec Consultants 
55 SW Yamhill St, Ste 200
Portland, OR 97204
Phone: (503) 222-9518
www.geosyntec.com


> -Original Message-
> From: Wayne Watson [mailto:sierra_mtnv...@sbcglobal.net]
> Sent: Sunday, December 06, 2009 3:02 PM
> To: matplotlib-users@lists.sourceforge.net
> Subject: [Matplotlib-users] I Need a Couple of Tips for Windows to Get
> Started on IPython
> 
> I've seen the tutorial, but need something more. How do I know what
> folder I'm in? How do I move from where I am to, for example,
> C:\abc\def? So far I've tried various combinations like this:
> 
> cd ..
> cd C:\
> pwd (yes, I know it's not windows)
> 
> I tried %cd .., and that may have moved me but I seem to get back to the
> same place.
> 
> I seem to be in  C:\Documents and Settings\administrator. If I doa %cp
> ..\\ it looks like I get to C:\, but follwing that with pwd gets me back
> to where I started--C:\Documents and Settings\administrator.
> 
> If I want to execute a program with %run, I need to be where abc.py is
> or, perhaps say something like %run C:\myPyPrograms\abc.py.
> Dir doesn't work and I haven't been able to even see what's in the
> folder.
> 
> 
> --
>Wayne Watson (Watson Adventures, Prop., Nevada City, CA)
> 
>  (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
>   Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
> 
>  "... humans'innate skills with numbers isn't much
>   better than that of rats and dolphins."
>-- Stanislas Dehaene, neurosurgeon
> 
> Web Page: 
> 
> 
> -
> -
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] I Need a Couple of Tips for Windows to Get Started on IPython

2009-12-06 Thread Wayne Watson
I've seen the tutorial, but need something more. How do I know what 
folder I'm in? How do I move from where I am to, for example, 
C:\abc\def? So far I've tried various combinations like this:

cd ..
cd C:\
pwd (yes, I know it's not windows)

I tried %cd .., and that may have moved me but I seem to get back to the 
same place.

I seem to be in  C:\Documents and Settings\administrator. If I doa %cp 
..\\ it looks like I get to C:\, but follwing that with pwd gets me back 
to where I started--C:\Documents and Settings\administrator.

If I want to execute a program with %run, I need to be where abc.py is 
or, perhaps say something like %run C:\myPyPrograms\abc.py.
Dir doesn't work and I haven't been able to even see what's in the folder.


-- 
   Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

 (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
  Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet  

 "... humans'innate skills with numbers isn't much
  better than that of rats and dolphins." 
   -- Stanislas Dehaene, neurosurgeon 
 
Web Page: 


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users