Python

EPD: Enthought Python Distribution

Enthought Python Distribution is a product from Enthought, Inc (software company that develops scientific computing tools using primarily the Python Language). This product is a set of tools to perform rigorous data analysis and visualization. EPD extends this capacity with a powerful collection of Python libraries to enable interactive technical computing and cross-platform rapid application development.

EPD has a commercial, an academic and a free version. With respect to the academic version this can be used indefinitely by students and employees at degree-granting institutions.

EPD Free provides a free, cross-platform installer of six of the libraries considered fundamental for scientists, engineers, and analysts as Numpy, Scipy, Matplotlib. Also we have an IDLE to use EPD. With these tools we can started to code and development python programs.
In my case, I installed EPD in 2 platforms: Windows 7 and Ubuntu 11.04.

INSTALLATION

Windows:

I had to use the Windows installer (from EPD Free Repository), I had any problem during installation.
python_windows7.png

Ubuntu:

Before I used EPD Free I installed Python 2.7.2, Numpy, Matplotlib, Scipy and a IDLE separately with good result expect with Scipy. For this reason, I decided to install EPD Free (from EPD Free Repository) in my Ubuntu. I am newby in ubuntu. Well, after I installed EPD, I had to add this program to my PATH.
Maybe it will help someone:

  1. I downloaded epd_free-7.2-2-rh5-x86.sh in my Desktop
  2. I opened a terminal where is epd_free-7.2-2-rh5-x86.sh, in my case in my Desktop
  3. I installed this .sh file with the next sentence: bash epd_free-7.2-2-rh5-x86.sh (Well, we have more than 1 way to install .sh file, Look)
  4. A full installation installs everything (except menu items in Unity Desktop) under the target install directory. All that is necessary to use EPD then is to place the directory. In my case: export PATH=/home/david/Desktop/epd_free-7.2-2-rh5-x86/bin/:$PATH
  5. We can access to EPD Free with terminal or with IDLE. In my case I had a previous IDLE with Python 2.7.1, however, EPD install its own IDLE. For this reason I have more than 1 IDLE.
    idle_python.png
  6. Finally, we can run some EPD examples:
    run_example_epd.png

PYTHON'S IDLE EDITOR

By default bakcgroundcolor is white. In my case I don't like because the default theme was just a bit too bright for me. For this reason I got the desert theme from beeman - Ubuntu Forum.
The code of this theme is:

CODE
[desert]
definition-foreground = #98fb98
error-foreground = #ff0000
string-background = #333333
keyword-foreground = #cc6600
normal-foreground = #f0e68c
comment-background = #333333
hit-foreground = #ffffff
break-foreground = black
builtin-background = #333333
stdout-foreground = #eeeeee
cursor-foreground = #ffcc00
hit-background = #333333
comment-foreground = #87ceeb
hilite-background = gray
definition-background = #333333
stderr-background = #333333
break-background = #ffff55
console-foreground = #87ceeb
normal-background = #333333
builtin-foreground = #519e51
stdout-background = #333333
console-background = #333333
stderr-foreground = #ff3e40
keyword-background = #333333
string-foreground = #ffa0a0
hilite-foreground = #000000
error-background = #000000
config_highlight.png

You can download this code as: config-highlight.cfg

Windows

Installing:

  1. You have to find .idlerc folder. In my case I found it on C:\Users\Owner\.idlerc.
  2. Then, you need to paste the file config-highlight.cfg in .idlerc folder:
    config-highlight-windows7.png
  3. Start IDLE
  4. Click Options -> Configure IDLE
  5. Click the highlighting tab
  6. Select a Custom Theme
  7. Select desert
  8. Click OK
    windows_config_idle_python.png

Ubuntu

Installing:

  1. Close IDLE (if open)
  2. Add the lines below to ~/.idlerc/config-highlight.cfg (If you don't have this file you will need to create it and save in .idlerc folder ("hide folder"). In my case I saved the desert code in: /home/david/.idlerc/config-highlight.cfg)
  3. Start IDLE
  4. Click Options -> Configure IDLE
  5. Click the highlighting tab
  6. Select a Custom Theme
  7. Select desert
  8. Click OK
desert_style_idle.png

I have only 1 theme: desert. However, we can add more themes in config-highlight.cfg

Rate this solution
If you think this solution is useful — rate it up! Or dump it otherwise.

rating: 0+x