this should do what you want

./sage -sh
python -i file.py


On Apr 14, 12:10 am, AndyNovo <a...@novocin.com> wrote:
> I think he's actually asking about the -i flag.  I was just wondering
> the same thing.
>
> sage myfile.sage
>
> runs myfile but doesn't return the interactive prompt.
> I'm guessing the goal is to run a script and have it end with a sage
> prompt and some stuff loaded for a session.  sage -i looks for
> packages to install, python -i gives interactive mode.
>
> On Mar 12, 2:29 am, William Stein <wst...@gmail.com> wrote:
>
> > On Friday, March 11, 2011, Ryan Grout <ayr...@gmail.com> wrote:
> > > Hi,
>
> > > How would one execute the following command:
> > > $ sage -python -i myfile.py
>
> > > so that instead of getting the python prompt, I get a sage prompt?
>
> > Rename it myfile.safe and do
>
> >   sage myfile.sage
>
> > > Thanks
> > > Ryan
>
> > > --
> > > To post to this group, send email to sage-support@googlegroups.com
> > > To unsubscribe from this group, send email to 
> > > sage-support+unsubscr...@googlegroups.com
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/sage-support
> > > URL:http://www.sagemath.org
>
> > --
> > William Stein
> > Professor of Mathematics
> > University of Washingtonhttp://wstein.org

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to