Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:python-canopy:python-canopy [2018-04-26 12:52] – [Using Canopy Express CLI] sraskar | software:python-canopy:python-canopy [2020-07-09 17:13] (current) – removed anita | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ==== Enthought Canopy Express ==== | ||
- | Canopy Express provides an open, intuitive environment for scientific and analytic computing. See a[[https:// | ||
- | |||
- | <note important> | ||
- | |||
- | " | ||
- | </ | ||
- | |||
- | |||
- | ==== Canopy Express setup ==== | ||
- | |||
- | To start using Canopy Express, use VALET | ||
- | |||
- | < | ||
- | $ vpkg_require canopy | ||
- | Performing first-time setup of Canopy...SUCCEEDED | ||
- | Adding package `canopy/ | ||
- | </ | ||
- | |||
- | The first time you use Canopy, it will install a virtual core development environment of Canopy Express in your home directory. It will take approximately 18M of space. It will add the appropriate directories to your '' | ||
- | |||
- | ==== Using Canopy Express CLI ==== | ||
- | |||
- | You can use the Canopy Express command line interface (CLI) to do your development on the head node, however it is always a good practice to run longer jobs using '' | ||
- | |||
- | < | ||
- | [traine@mills ~]$ vpkg_require canopy | ||
- | Adding package `canopy/ | ||
- | [traine@mills ~]$ echo $PATH | ||
- | / | ||
- | [traine@mills ~]$ which ipython | ||
- | ~/ | ||
- | [traini@mills ~]$ ipython | ||
- | Python 2.7.6 | 64-bit | (default, Jan 29 2014, 17:35:36) | ||
- | Type " | ||
- | |||
- | IPython 1.1.0 -- An enhanced Interactive Python. | ||
- | ? -> Introduction and overview of IPython' | ||
- | %quickref -> Quick reference. | ||
- | help -> Python' | ||
- | object? | ||
- | |||
- | In [1]: | ||
- | </ | ||
- | |||
- | <note important> | ||
- | < | ||
- | import matplotlib._png as _png | ||
- | ImportError: | ||
- | </ | ||
- | </ | ||
- | |||
- | <note tip> | ||
- | Sample commands here demonstrate example for : (cluster '' | ||
- | </ | ||
- | ==== Using Canopy Express GUI ==== | ||
- | |||
- | If you need to use the GUI (Graphical User Interface) to use the interactive editor or package manager to install a package not currently available in the virtual core development environment of Canopy Express, then you must do so on a compute node by using '' | ||
- | |||
- | < | ||
- | [traine@mills ~]$ workgroup -g it_css | ||
- | [(it_css: | ||
- | Your job 485034 (" | ||
- | waiting for interactive job to be scheduled ... | ||
- | Your interactive job 485034 has been successfully scheduled. | ||
- | Establishing / | ||
- | [traine@n017 ~]$ vpkg_require canopy | ||
- | Adding package `canopy/ | ||
- | [traine@n017 ~]$ vpkg_require x11 | ||
- | Adding package `x11/ | ||
- | [traine@n017 ~]$ canopy | ||
- | </ | ||
- | |||
- | |||
- | A **Welcome to Canopy** window should be displayed. If you try to run the Canopy Express GUI on the head node, it will crash with a segmentation fault. | ||
- | |||
- | In the package manager, you may see packages which indicate **CANOPY** and not **FREE**, when you click on these packages listed at **CANOPY** you will not have an '' | ||
- | |||
- | <note important> | ||
- | |||
- | |||
- | ==== Using other libraries and packages with Canopy Express ==== | ||
- | |||
- | If you are loading Canopy express to build a package based on Enthought' | ||
- | |||
- | < | ||
- | $ vpkg_devrequire canopy | ||
- | Adding package `canopy/ | ||
- | $ vpkg_devrequire gcc/4.6 | ||
- | Adding package `gcc/4.6.2` to your environment | ||
- | $ vpkg_devrequire openmpi/ | ||
- | Adding package `openmpi/ | ||
- | </ | ||
- | |||
- | ==== Resetting Canopy Express setup ==== | ||
- | |||
- | You may want to reset your Canopy Express, perhaps to get an updated virtual environment or a newer version to minimize the disk usage in your home directory. You can do this by removing Canopy Express setup in your home directory. | ||
- | |||
- | < | ||
- | [traine@mills ~]$ rm -r .canopy | ||
- | [traine@mills ~]$ rm -r .canopy-1.3.0 | ||
- | [traine@mills ~]$ rm -r canopy | ||
- | </ | ||
- | |||
- | Once the Canopy Express setup directories in your home directory are removed, the next time you use '' |