velociraptors / astronomy-notebooks

iPython Notebooks showing off NumPy, matplotlib, and our universe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

astronomy-notebooks

iPython Notebooks showing off NumPy, matplotlib, and our universe

Getting Started

The short version: make sure you have all of the appropriate dependencies installed and then run the appropriate setup script for your platform.

Linux

  1. Install/build the required dependencies. Most dependencies other than Python and virtualenv are automatically installed via the setup script.
  2. Clone or fork this repo.
  3. Run setup.sh to create a new virtualenv, install any missing dependencies, and download required data sets.

Windows

  1. Install the required dependencies. See below for details.
  2. Clone or fork this repo.
  3. Run setup.bat to create a new virtualenv, install any missing dependencies, and download required data sets.

Windows Dependencies (the simple way)

The easiest way to get all of the dependencies in Windows is to use a special Python distribution meant for scientific computing. Pick one of the following options:

  • Install Python(x,y). You can reduce the disk space required by only selecting the dependencies listed below (and any components required by those dependencies). Mayavi is included as part of the 'ETS' component. If you already have Python 2.7 installed, Python(x,y) may clobber your existing installation.
  • Install EPD. The free version of EPD does not include Mayavi, but it does contain the tools required to build it from source. If you don't want 3D visualizations, you don't need Mayavi.

Windows Dependencies (the harder way)

  1. Install Python 2.7 and virtualenv. You may also want to install setuptools or distribute.
  2. Download and install binaries for wxPython, iPython, pyreadline, numpy, scipy, matplotlib.
  3. Use pip or easy_install to install tornado, pyzmq, sympy, pyephem, jplephem, de405, sgp4. (I'm pretty sure these libraries can all be installed without a compiler.)
  4. (optional) If you're using regular Python, rather than EPD, you'll need to install or build VTK. Python(x,y) bundles an installer which is listed on the standard plugins page. If you want to try building VTK from source, you'll also need CMake, a compiler such as MinGW or Visual Studio, and a very large bottle of whiskey.
  5. Build Mayavi from source. You could also try installing the ETS package from the Python(x,y) standard plugins.

Dependencies

Python

iPython

Visualization tools

Astronomical software

About

iPython Notebooks showing off NumPy, matplotlib, and our universe


Languages

Language:Shell 56.3%Language:Python 43.7%