|
|||
NRAO Home > CASA > CASA Cookbook and User Reference Manual |
|
B.11 On-line editing
You can edit files on-line in two ways:
- Using the shell access via ’!vi’
- Using the ed function; this will edit the file but upon closing, it will try to execute the file;
using the ’script.py’ example above:
CASA [13]: ed script.py # this will bring up the file in your chosen editor
# when you are finished editing the file,
# it will automatically
# execute it (as though you had done a
# execfile ’script.py’
Editing... done. Executing edited code...
CASA [14]: x
Out[14]: 1
CASA [15]: y
Out[15]: 3
CASA [16]: z
Out[16]: 6
More information about CASA may be found at the
CASA web page
Copyright © 2010 Associated Universities Inc., Washington, D.C.
This code is available under the terms of the GNU General Public Lincense
Home |
Contact Us |
Directories |
Site Map |
Help |
Privacy Policy |
Search