Mathjax javascript librry setup

Python Open Notebook

MacOS Python Installation Locations

Different installers put Python and its libraries in different places.

  • Homebrew:
    • The Python 3.3 install had a bug with Idle … it crashes when selecting preferences from the menu
    • So I installed Python 3.3.2 using the native installer on the Python web site:
    • Homebrew installs Python at:
      • /usr/local/Cellar/python (for version 2.7.x)
      • /usr/local/Cellar/python3 (for version 3.x)
    • The site-libraries are installed at:
      • /usr/local/lib/python2.7/site-packages
      • /usr/local/lib/python3.3/site-packages
    • Homebrew also installs start-up apps for Idle, Idle 3, Python Launcher and Python Launcher 3 at:
      • ~/Applications
    • Homebrew also puts symlinks for python and the other binaries into /usr/local/bin/python
  • Native MacOS Python:
    • The Python provided by Apple, and the one installed from the Python web site put Python in the frameworks sub directory:
      • /Library/Frameworks/Python.framework (for Python itself)
    • The site-libraries are installed at:
      • /Library/Python/2.7/site-packages
    • The MacOS launcher applications are installed at: /Applications/Python 3.3
    • It also adds /Library/Frameworks/Python.framework/Versions/3.3/bin to the .bash_profile path

NumPy and SciPy Install Information

  • I used unofficial Scipy Superpack Mac OS X installer shell script from Chris Fonnesbeck
  • A single shell script installs “recent 64-bit builds of Numpy (1.8) and Scipy (0.12), Matplotlib (1.3), iPython (0.14), Pandas (0.10), Statsmodels (0.5.0), Scikit-Learn 0.14, as well as PyMC (2.2) for OS X 10.8 (Mountain Lion) on Intel Macintosh. In addition, a handful of support packages are installed, such as nose, readline and DateUtils.”
  • The build puts the packages in /Library/Python/2.7/site-packages (and my Python seems to find them, even though I installed Python 2.7 with Homebrew)
  • Scipy requires a Fortran compiler … the installer downloads and installs gcc-42-5666.3-darwin11.pkg (or is it gFortran 4.2.4), which works with XCode 4.6
  • Numpy is supposed to be C only, no Fortran.
  • I had to install Python-dateutils with pip. The Superpack installer is supposed to install it, but matplotlib could not find it, until I had installed it separately with pip.