cosmicds / hubbleds

Hubble's law data story
MIT License
0 stars 8 forks source link

Project generated with PyScaffold

Hubble's Law

A Cosmic Data Story about Hubble's Law

Requirements

Installation

Running HubbleDS

Inside the hubbleds folder in your terminal,

    $ CDS_API_KEY="<your api key>" solara run hubbleds.pages --theme-variant dark

Development Tip

If you update .css, you have to force refresh your browser (shift-command-r on a mac) for the changes to register.

Legacy Code

As of 4/30/2024, the voila-based code has been moved to the legacy branch.

To run the legacy code, you also need the legacy branch of the cosmicds repo.

or

Development environment

In order to keep consistency with development, this repository contains an environment file that specifies dependency versions. You can create a conda environment using this file via

conda env create --name <env-name> --file environment.yml

To re-create the environment file using the packages in your current environment, you can run the make_environment.py script. Note that this file will make sure that we install the ipywwt package from its git repository. It also removes any references to cosmicds and hubbleds, as this is supposed to generate a development environment for the hubbleds package. This script only retains information about Python packages installed via pip; other conda dependencies may differ between machines and aren't important for our purposes.

Note

This project has been set up using PyScaffold 4.5. For details and usage information on PyScaffold see https://pyscaffold.org/.