[Tutor] from command prompt use interactive python and running script together

Chris “Kwpolska” Warrick kwpolska at gmail.com
Fri Feb 21 15:43:14 CET 2014


On Fri, Feb 21, 2014 at 3:20 PM, Gabriele Brambilla
<gb.gabrielebrambilla at gmail.com> wrote:
> Hi,
>
> Is possible on python to running scripts from the command prompt (I'm using
> python on windows) and in the end saving all the variables and continue the
> analysis in the interactive mode? (the one that you activate typing python
> in the command prompt?)

Run this:

python -i file.py

> Or to use python in the interactive mode and in some moments to run scripts,
> without quit() the interactive mode, and use for the script variables the
> one you have defined in the interactive mode?
>
>
> thanks
>
> Gabriele
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>

-- 
Chris “Kwpolska” Warrick <http://kwpolska.tk>
PGP: 5EAAEA16
stop html mail | always bottom-post | only UTF-8 makes sense


More information about the Tutor mailing list