This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
other:python:starting [2019/06/04 16:08] jypeter Re-ordered and improved |
other:python:starting [2021/01/05 11:30] jypeter [Canopy] Canopy is now called EDM |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Working with Python ====== | ====== Working with Python ====== | ||
- | <note tip>This page will tell you how to select a python distribution and start (and exit!) the python interpreter | + | <note tip>This page will tell you how to select a //python distribution// and start (and exit!) the python interpreter |
- | You can then read the [[jyp_steps|JYP's recommended steps for learning python]] for really working with python | + | After reading this page, you can read the [[jyp_steps|JYP's recommended steps for learning python]] for really working with python |
</note> | </note> | ||
Line 184: | Line 184: | ||
=== CDAT at TGCC === | === CDAT at TGCC === | ||
+ | |||
+ | Note: TGCC also supports its own [[#tgcc_distribution|TGCC distribution]], that may be more up-to-date, if you don't need specific CDAT modules | ||
CDAT **8.0** is installed at TGCC and can be initialized with: | CDAT **8.0** is installed at TGCC and can be initialized with: | ||
Line 189: | Line 191: | ||
* Python 3: ''module load flavor/cdat/python3 cdat'' | * Python 3: ''module load flavor/cdat/python3 cdat'' | ||
- | === A common error === | + | === A common CDAT-related error === |
Note: if you get an error when importing //cdms2// or //vcs// it means that either you have forgotten to initialize CDAT, or that something went wrong during the initialization. In both cases, you are either still using the default python installed on your system, or another (non-CDAT) python distribution! | Note: if you get an error when importing //cdms2// or //vcs// it means that either you have forgotten to initialize CDAT, or that something went wrong during the initialization. In both cases, you are either still using the default python installed on your system, or another (non-CDAT) python distribution! | ||
Line 235: | Line 237: | ||
</code> | </code> | ||
- | ==== Canopy ==== | + | ==== Enthought Deployment Manager (EDM) ==== |
- | [[https://www.enthought.com/products/canopy/|Enthought Canopy]] is //a Scientific and Analytic Python Deployment with Integrated Analysis Environment// provided by [[https://www.enthought.com/|Enthought]]. It used to be called EPD (//Enthought Python Distribution//) | + | <note tip>This was previously called //Enthought Python Distribution (EPD)// and then //Enthought Canopy//</note> |
- | Canopy is **available for Windows, Mac and Linux**. You can download the free //Canopy Express// that will already provide many extensions. If you are entitled to use //Canopy Academic//, login from inside Canopy Express and download the extra modules you need | + | [[https://www.enthought.com/enthought-deployment-manager/|Enthought Deployment Manager (EDM)]] is Enthought’s mechanism to deliver scientific software applications and development environments |
+ | |||
+ | There are native installers for Windows (.msi), Mac OS X (.pkg), RHEL/Fedora (.rpm), and Debian/Ubuntu (.deb) | ||
Line 264: | Line 268: | ||
<note warning>FIXME Add a link to the new notebook page</note> | <note warning>FIXME Add a link to the new notebook page</note> | ||
+ | |||
+ | [[https://www.dataquest.io/blog/jupyter-notebook-tutorial/|Jupyter Notebook for Beginners: A Tutorial]] | ||
The ipython notebook is a way to interact with python (and other supported interpreted languages) inside a web browser. You can mix //cells// with python commands, cells with the output of the python commands (possibly graphics generated by the commands), and text (using some wiki-like rich text format). This interactive web page, aka notebook, can be saved in a ''my_notebook.ipynb'' file and re-used later (e.g. the notebook provided in the [[other:python:jyp_steps#part_1|introduction to Python, part 1]]). | The ipython notebook is a way to interact with python (and other supported interpreted languages) inside a web browser. You can mix //cells// with python commands, cells with the output of the python commands (possibly graphics generated by the commands), and text (using some wiki-like rich text format). This interactive web page, aka notebook, can be saved in a ''my_notebook.ipynb'' file and re-used later (e.g. the notebook provided in the [[other:python:jyp_steps#part_1|introduction to Python, part 1]]). |