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
- Accept the terms and click Next
- Browse for preferred target directory, then click Next
- Select shortcut preferences, then click Finish
- Wait for installation process to finish, this should only take a minute or less
- Click Finish
- Choose Accept and then click Next
- Choose All, then click Next
- Browse for preferred target directory, then click Next
- Let the installer find your java home directory, or browse for a custom directory. Click Next
- Review your choices, then click Next
- Wait for installation process to finish, this should only take a few seconds.
- Optionally look over the ReadMe, then click Next
- Press Finish to exit the installation
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.