how to develop code using a mix of an existing python-program and console-commands
Mark Lawrence
breamoreboy at yahoo.co.uk
Wed Dec 18 15:52:35 EST 2013
On 18/12/2013 20:17, Jean Dubois wrote:
> I have a python-program which I want to perform its task first, then
> switch to
> the python console to experiment with further commands, using what was
> already
> defined in the python-program.
> I want this as an alternative for what I do now (but which is not very
> efficient):
> I start the python-console and then manually copy-paste line per line from
> the program in the console, then try out possible continuation commands,
> if however something goes wrong I have to redo the whole process.
>
> any suggestions?
> thanks in advance
> jean
>
An alternative to the excellent answer from Jerry Hill is to use the
iPython %paste command.
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
More information about the Python-list
mailing list