View on GitHub

CosmoCalc

The New Age Cosmological Calculator (à la Ned Wright), written (almost entirely) in Python

download .ZIPdownload .TGZ

CosmoCalc

A project page for the Cosmological Calculator (à la Ned Wright), written using NumPy, SciPy, pandas, Flask and a little bit of HTML and CSS. The rendered, working website is here.


Dependencies

Note : Skip this section if you have the Anaconda distribution installed on your system. That will already have the dependencies listed below.

  1. Flask, which requires:
    • Werkzeug
    • Jinja2 - which requires MarkupSafe
    • click
    • itsdangerous
  2. NumPy
  3. Scipy
  4. pandas, which requires:
    • python-dateutil - which requires six
    • pytz

To install the above dependencies:

  1. Make sure you have a working Python installation on your machine. To do this, type python --version in a terminal. If this step produces no output, you may need to install python on your machine.
  2. Once you have Python installed, get pip, the python package manager, and install it. Here are some instructions.. Once pip is set up, simply execute pip install <package-name> to install the required dependencies.

Running this Website on your Local Machine

Once you have done the above, go to the address 127.0.0.1:5000/ or localhost:5000/ and voila!