On Wed, Dec 18, 2013 at 3:17 PM, Jean Dubois <jeandubois...@gmail.com>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
> --
> https://mail.python.org/mailman/listinfo/python-list
>


Write the code to a file.  you can run it like:

python program_name.py

Go back to your text editor and do copy all (ctl-a, ctl-v) then open a
python console and paste it in

-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to