Skip to content

Language: Shell Statement

Maurice HT Ling edited this page Dec 6, 2015 · 2 revisions

Launch a language-specific interpreter within TAPPS.

Syntax:

  1. PYTHONSHELL: Launch a Python interpreter.

For Python interpreter, the following variables are defined, or imported:

  • pprint - Pretty print is imported
  • all functions in tapps.py are imported
  • TAPPS engine is imported as tapps_engine
  • session variable points to the current session dictionary
  • environment variable points to the current environment dictionary
  • dataframe variable points to the current dataframes within session (session['MDF'].frames)

Example:

# Set relative current working directory and load a CSV file
set rcwd data
load csv STI_2015.csv as STI

# Launch a Python interpreter within TAPPS
pythonshell

Advanced Topics

  1. Bytecodes generated are:
    • pythonshell