[IPython-user] Re: using typed code
Robert Kern
rkern at ucsd.edu
Tue Sep 20 16:33:18 CDT 2005
Rakotomandimby Mihamina wrote:
> Hi all,
>
> I mostly use ipython to test some portions of code, before integrating
> it into the source code file.
> For short code portions, I dont mind retyping the stuff into the file.
>
> The problem is when I test a long function (10 or more lines) it is
> awfully frustrating to (try to) retype all this. It also increase the
> probability to make a typo error.
>
> Do you use any feature of ipython that could help for copy-pasting what
> has been typed into an ipython shell. Just copy-pasting the session
> would also copy-paste the prompts (In[x], Out[y], Tracebacks,...)
Look at the logfile.
Or always write your functions in a script that you %run or reload().
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the IPython-user
mailing list