Configuring INTViewer for Enthought Libraries

INTViewer uses Jython as Python engine and as a result is not natively compatible with C-Python libraries. However, there is a work-around available. In this example we use the open source library execnet to access the Enthought API from INTViewer.

Optional: skip the 2. Download Jython and 3. Download execnet steps by downloading the Lib.zip file at the bottom of the page, then proceed to 4. Configure INTViewer.

Download Enthought

First download EPD Free or make sure a version of Enthought is installed. Tested with EDP Free v 7.3-2.

  • Open the installer for EPD from your downloads folder
  • Select which users to install for, then click Next
Select Users
  • Accept the terms and click Next
Accept Terms
  • Browse for preferred target directory, then click Next
Choose Target Directory
  • Select shortcut preferences, then click Finish
Select Shortcut Preferences
  • Wait for installation process to finish, this should only take a minute or less
Please Wait
  • Click Finish
Finish

Download Jython

Next, download Jython version 2.5.3, more information on Jython can be found here.

Note: Skip this step by downloading Lib.zip found at the bottom of the page

  • Open the installer jar from your downloads folder
  • Select your preferred language and click Next
Select Language
  • Choose Accept and then click Next
Accept Terms and Conditions
  • Choose All, then click Next
Select Components
  • Browse for preferred target directory, then click Next
Select Target Directory
  • Let the installer find your java home directory, or browse for a custom directory. Click Next
Select Java
  • Review your choices, then click Next
Review Choices
  • Wait for installation process to finish, this should only take a few seconds.
Wait
  • Optionally look over the ReadMe, then click Next
ReadMe
  • Press Finish to exit the installation
Finish

Download Execnet

Download Execnet version 1.1, more information on Execnet can be found here.

Note: Skip this step by downloading Lib.zip found at the bottom of the page

Execnet Contents

Configure INTViewer

After those components are downloaded they must be added to INTViewer as follows.

  • Find INTViewer's installation location and Open it.
    • Navigate to INTViewer > intviewer > modules > ext
  • In a separate window, navigate to your chosen Jython installation directory and Open it
    • Note: Skip this step if you have downloaded Lib.zip
    • Copy Lib into INTViewer's ext directory
      • Note: If you have downloaded Lib.zip then extract the contents into INTViewer's ext directory
  • Navigate to your execnet download and Open it
    • Copy the execnet sub-folder (inside the execnet-1.1 folder) into the newly added Lib directory (refer to last step).

Download Python Scripts

Download the 3 Python script files at the bottom of this page.

We assume they are stored in C:\MyScripts, as shown below:

Validate Installation

Open new Command Prompt/Terminal/Shell, navigate to C:\MyScripts and type python startserver.py

Open INTViewer, open a new Python Terminal and type execfile("C:\MyScripts\connectserver.py")

Note: You only need to launch the "connectserver.py" script once per INTViewer session.

Launch the built-in Enthought "chaco" demo by typing execfile("C:\MyScripts\chacodemo.py")

To exchange data between INTViewer and Enthought, use this example.