|
Cover of Problems Text


Recent Python Codes for

Computational Problems for Physics

Rubin H Landau & Manuel J Paez

CRC Press, Taylor & Francis


Older Fort, C, Java, & Python Codes

Back Cover of Problems terxt
 

 Which Python to Use?

While Python is the same in different package distributions, out programs use several visualization packages.

The codes in MatplotLib use the Matplotlib package for visualizations, or in some cases no visualizations. We have run
them with the Python distribution (both free) Enthought Canopy and with Anaconda 2's Spyder. RHL has them running best with
Python 2 and Canopy (Spyder's Kernel sometimes has to be restarted to get the figures).

The codes in Vpython use Vpython graphics. Vpython has recently been undergoing changes and for us the codes run easiest by pasting them into an Anaconda 2 Jupyter notebook environment. Note that Vpython may have to be installed into Anaconda with the command "conda install -c vpython vpython" or "pip install vpython".