Skip to content

Caltech-IPAC/firefly-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firefly Workshop

Tutorial notebooks on using the Firefly Python client (and Jupyter Lab extension) to visualize astronomical data as images, tables, charts, and more!

Setup Workshop Environment

Prerequisites

If you don't have the following installed already,

Note: If you're using Windows, it is highly recommended to use Windows Subsystem for Linux (WSL) for fewer installation headaches.

Setup instructions

  1. Clone this repository on your machine:

    git clone https://github.com/Caltech-IPAC/firefly-workshop
    cd firefly-workshop
  2. Create Python environment with all the necessary dependencies including Firefly Python client and Jupyter Lab extension:

    conda env create --file environment.yml
    conda activate firefly-py-env

    The name of the new conda environment created above should be displayed next to the terminal prompt:

    (firefly-py-env)
    
  3. Set the environment variable for Firefly server to let the Firefly Jupyter Lab extension know which server to talk to from the Python client. We use a public Firefly server - IRSA Viewer:

    export FIREFLY_URL=https://irsa.ipac.caltech.edu/irsaviewer
  4. Open the repository in Jupyter Lab:

    jupyter lab

Reference/Cheatsheet

Once you have completed the setup instructions above, you are ready to visualise your data files from Jupyter Lab in Firefly using the Firefly Python client (firefly_client package).

Go through the Reference notebook present in this repository to learn how to use different capabilities of firefly_client.

The following is a condensed list of all the pages in firefly_client's documentation website that are most relevant for this workshop:

Exercises

We have 3 notebooks demonstrating how to visualize astronomical data from Python using Firefly in exercises directory:

Solutions

The solutions of the above exercise notebooks are present at Firefly section in IRSA Tutorials website.

About

Tutorial notebooks on using Firefly in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published