I Need a Couple of Tips for Windows to Get Started on IPython

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: <www.speckledwithstars.net/>

------------------------------------------------------------------------------

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: <www.speckledwithstars.net/>

--
           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: <www.speckledwithstars.net/>