Difference between revisions of "ICalico"

From IPRE Wiki
Jump to: navigation, search
(Installation)
Line 10: Line 10:
 
#* [Calico Download]
 
#* [Calico Download]
 
# Create a profile
 
# Create a profile
#* StartCalico --create-profile
+
#* <code>StartCalico --create-profile</code>
 
# Start IPython with Calico profile
 
# Start IPython with Calico profile
#* ipython notebook --profile calico
+
#* <code>ipython notebook --profile calico</code>
  
 
A web page should open up which will allow you to enter scripts and Calico "magic" commands.
 
A web page should open up which will allow you to enter scripts and Calico "magic" commands.

Revision as of 19:51, 16 March 2014

ICalico is a new method of interacting with Calico. In addition, a host of new functionality is available.

Installation

  1. Install IPython
  2. Install Calico
    • [Calico Download]
  3. Create a profile
    • StartCalico --create-profile
  4. Start IPython with Calico profile
    • ipython notebook --profile calico

A web page should open up which will allow you to enter scripts and Calico "magic" commands.

Getting Started

For an introduction to this manner of interacting with programs, please see:

http://nbviewer.ipython.org/urls/bitbucket.org/ipre/calico/raw/master/notebooks/Calico%20Overview.ipynb

Documentation

Magics

ICalico magics are "meta" commands that are commands for the ICalico system, and not part of any language.

  • One preceding percent sign indicates a "magic line command"
  • Two preceding percent signs indicates a "magic cell command"
  • Three preceding percent sign indicates a "magic notebook command"
%connect_info       - show ICalico JSON connection information
%edit FILENAME      - edit a file in an external editor
%%file FILENAME     - create a filename with contents of cell
%%html              - treat the cell as HTML
%lang               - get information on current language
%%lang LANGUAGE     - change language for just this cell
%%%lang LANGUAGE    - change language for rest of cells
%magic              - get information on magic meta-commands
%qtconsole          - start a qtconsole
%run FILENAME       - run a file (language determined by extension)
%%time              - time how long it takes to run this cell