DR7: Installing daschlab

daschlab is the recommended software system for astronomical analysis of DASCH data. It is a Python toolkit meant to be run inside the JupyterLab computational environment, although it fully supports non-interactive use as well.

Thanks to cloud-based notebooks, you don’t need to install daschlab on your own computer to work with DASCH data. But for substantial data analysis, you are probably going to want to do so.

We strongly recommend installing daschlab and its dependencies using the popular Conda package management system in conjunction with the conda-forge package suite. If you need help setting up Conda or conda-forge, see the official conda installation instructions and how to start using conda-forge packages. There are numerous other tutorials available on the general internet as well.

Once these systems are set up on your computer, you can install daschlab by following running the following command in a terminal:

conda create --name daschlab --file https://github.com/pkgw/daschlab/releases/latest/download/daschlab-conda-requirements.txt

This command will produce a fair amount of output, but should not report any severe errors. Once the installation is complete, you can launch a new daschlab session as follows:

  1. If needed, activate the daschlab environment with the command
    conda activate daschlab
    
  2. Launch JupyterLab with the command
    jupyter lab
    

Alternatives

You should be able to install daschlab using any other Python package management framework if needed. The conda-forge system provides a daschlab package that can be installed in the usual fashion: conda install daschlab. In a pip-based system, you can run: pip install -U daschlab.

Consult the Conda requirements list file for a list of dependencies, although any of the above installation methods should pull in the requirements automatically.

If you prefer to use other analysis tools, that is completely possible: the data returned by the DASCH web APIs are all in simple formats (ASCII tables and FITS). You can use daschlab in a minimal way to download these data and save them to disk, or invoke the APIs directly if you really want to. Be aware, however, that support for VO standards is still quite limited.

Support

If you have trouble installing daschlab, try the following:

  1. Try asking a local computer expert. In many cases, someone familiar with Python will be able to help even if they have no prior experience with DASCH or daschlab.
  2. Try asking on the DASCH Astrophysics email list.