User Tools

Site Tools


other:python:starting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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 13:42]
jypeter Moved the Anaconda section before EDM, and improved it a bit
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 161: Line 161:
 ==== CDAT ==== ==== CDAT ====
  
-[[https://​uvcdat.llnl.gov/​|CDAT]] (//​Community Data Analysis Tools//) is a powerful and complete front-end to a rich set of visual-data exploration and analysis capabilities well suited for **climate** data analysis problems, and is recommended by JYP.+[[https://​uvcdat.llnl.gov/​|CDAT]] (//​Community Data Analysis Tools//) is a powerful and complete front-end to a rich set of visual-data exploration and analysis capabilities well suited for **climate** data analysis problems. CDAT is **recommended by JYP**.
  
 CDAT is **available for Mac, Linux and Windows 10 (Windows 10 + [[other:​win10wsl|Windows Subsystem for Linux, and Ubuntu]])**. CDAT is **available for Mac, Linux and Windows 10 (Windows 10 + [[other:​win10wsl|Windows Subsystem for Linux, and Ubuntu]])**.
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 ==== 
  
-[[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//​)+==== Anaconda ====
  
-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+<note tip>This is the recommended Python distribution/​environment. It is **available for Windows, Mac and Linux**</note>
  
 +[[https://​www.continuum.io/​why-anaconda|Anaconda]] is a distribution provided by [[https://​www.continuum.io/​|Continuum Analytics]]. It is similar to [[#​enthought_deployment_manager_edm|EDM]]
  
-==== Anaconda ==== 
  
-[[https://www.continuum.io/​why-anaconda|Anaconda]] is a distribution similar to [[#canopy]] provided by [[https://​www.continuum.io/​|Continuum Analytics]].+NoteAnaconda provides and uses ''​conda''​ for its installationSince [[#cdat|CDAT]] is also installed and maintained with ''​conda'',​ you can read the [[other:uvcdat:​conda_notes|Installing and maintaining UV-CDAT with conda]] page for more information,​ even if you are not going to use CDAT
  
-Anaconda is **available for Windows, Mac and Linux**+==== Enthought Deployment Manager (EDM) ====
  
-Note: Anaconda provides ​and uses ''​conda''​ for its installation. Since CDAT is now also installed and maintained with ''​conda'',​ you can read the [[other:uvcdat:​conda_notes|Installing and maintaining UV-CDAT with conda]] page for more informationeven if you are not going to use CDAT+<note tip>This was previously called //Enthought Python Distribution (EPD)// ​and then  //Enthought Canopy//</​note>​ 
 + 
 +[[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)
  
 ===== ipython ===== ===== ipython =====
Line 264: Line 269:
  
 <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]]).
other/python/starting.txt · Last modified: 2023/05/17 08:10 by jypeter