Book Image

Sage Beginner's Guide

By : Craig Finch
1 (1)
Book Image

Sage Beginner's Guide

1 (1)
By: Craig Finch

Overview of this book

Table of Contents (17 chapters)
Sage Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Starting Sage from the command line


In the previous chapter, we learned how to start Sage. If you want to pass options to Sage when it starts, you can do so with command line arguments.

  1. On OS X or a UNIX-like platform, start by opening a terminal window. On Windows, start the virtual machine and double-click the Terminal icon.

  2. If you have added the Sage application directory to the PATH environment variable, you can just type sage at the command prompt. If not, you will need to enter the full path to the Sage binary.

  3. Add command line arguments, separated by spaces, and press Enter. For example, type the following at the command prompt to start Sage and automatically launch the notebook interface:

    $ /Applications/sage/sage -notebook
    

There are many command line arguments, but you probably won't need them right away. Three of the most useful arguments are as follows:

Argument

Description

-help

Describe the most widely used command line arguments

-advanced

Describe more advanced command...