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

David Palao dpalao.python at gmail.com
Fri Feb 21 15:40:08 CET 2014


2014-02-21 15:20 GMT+01:00 Gabriele Brambilla <gb.gabrielebrambilla at gmail.com>:
> 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?)

I guess you could define a function that does something like this by
using pickle or similar technology.

> 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?
>

You could import some objects from modules and use them in the
interactive session.

>
> thanks
>
> Gabriele
>

Best

> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>


More information about the Tutor mailing list