User Tools

Site Tools


other:python:jyp_steps

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:jyp_steps [2020/05/06 08:53]
jypeter [Graphics related resources] Added more color resources
other:python:jyp_steps [2020/10/08 13:37]
jypeter [Python 2.7 vs Python 3] Added more information
Line 372: Line 372:
  
 Depending on the distribution,​ the editor and the programming environment you use, you may have access to a graphical version of the debugger. UV-CDAT users can use ''​pydebug my_script.py''​ Depending on the distribution,​ the editor and the programming environment you use, you may have access to a graphical version of the debugger. UV-CDAT users can use ''​pydebug my_script.py''​
 +
 +===== jupyter and notebook stuff =====
 +
 +FIXME Misc notes, resources and links to organize later
 +
 +  * [[https://​beta.jupyterbook.org/​|jupyter {book}]]: Jupyter Book is an open source project for building beautiful, publication-quality books and documents from computational material.
  
 ===== Using a Python IDE ===== ===== Using a Python IDE =====
Line 414: Line 420:
 ===== Python 2.7 vs Python 3 ===== ===== Python 2.7 vs Python 3 =====
  
-The official [[https://​docs.python.org/​2.7/​howto/​pyporting.html|Porting Python 2 Code to Python 3]] page gives the required information to make the transition from python 2 to python ​3. It is still safe to use Python 2.7, so there is no rush to change to Python ​3.+It is still safe to use Python 2.7, but **you should consider upgrading to Python 3**, unless some key modules you need are not compatible (yet) with Python 3 
 + 
 +You should start writing code that will, when possible, work both in Python 2 and Python 3 
 + 
 +Some interesting reading: 
 + 
 +  * [[https://​docs.python.org/​3/​whatsnew/​3.0.html|What’s New In Python 3.0]].\\ Examples: 
 +    * ''​print''​ is now a function. Use ''​print('​Hello'​)''​ 
 +    * You cannot test a difference with ''<>''​ any longer! Use ''​!=''​ 
 + 
 +  * The official [[https://​docs.python.org/​2.7/​howto/​pyporting.html|Porting Python 2 Code to Python 3]] page gives the required information to make the transition from python 2 to python 3. 
  
 ===== What now? ===== ===== What now? =====
other/python/jyp_steps.txt · Last modified: 2024/03/07 10:15 by jypeter