Skip to content

Commit b850fb0

Browse files
Merge pull request #75 from Caltech-IPAC/FIREFLY-1573-py-upload
FIREFLY-1573: Extend Firefly python's file (up)loading API
2 parents adb997f + 58625ee commit b850fb0

File tree

6 files changed

+1133
-78
lines changed

6 files changed

+1133
-78
lines changed

README.md

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
11
# firefly_client
22

3-
Python API for Firefly, IPAC's Advanced Astronomy Web UI Framework
3+
Python API for [Firefly](http://github.com/Caltech-IPAC/firefly), IPAC's Advanced Astronomy Web UI Framework. This allows users to leverage Firefly in their Python notebooks for interactive exploration of astronomical data (images, catalogs, charts, regions, and more) with just a couple of lines of code.
44

5-
## Usage
65

7-
The client must be connected to a Firefly server. The Firefly
8-
repository is located at http://github.com/Caltech-IPAC/firefly.
9-
Standalone Firefly servers may be obtained from
10-
[this Dockerhub repository](https://hub.docker.com/r/ipac/firefly/).
6+
## Documentation
117

12-
For detailed explanation on the usage, see [the online documentation](https://caltech-ipac.github.io/firefly_client). Following is a very simple example:
8+
You can find the documentation at https://caltech-ipac.github.io/firefly_client.
139

14-
```
15-
from firefly_client import FireflyClient
16-
fc = FireflyClient.make_client() # can also explictly pass url of a firefly server; default is http://localhost:8080/firefly
17-
```
10+
NOTE: Many parts of this documentation are a work in progress because the firefly_client API and its use cases evolved since it was written.
11+
Please report any issues or suggestions on the [GitHub issues](https://github.com/Caltech-IPAC/firefly_client/issues).
1812

19-
A FITS image may be uploaded and displayed:
20-
21-
```
22-
fval = fc.upload_file('image.fits')
23-
fc.show_fits(fval, 'myimage')
24-
```
25-
26-
For more examples, check notebooks & python files in the [examples](examples/) and [test](test/) directories.

docs/usage/demo-notebooks.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
###############
2+
Demo Notebooks
3+
###############
4+
5+
6+
Reference Guide
7+
-----------------
8+
9+
For a high-level overview of the Firefly Python client API and important methods, refer to this `reference guide notebook <https://nbviewer.org/github/Caltech-IPAC/firefly_client/tree/master/examples/reference-guide.ipynb>`_.
10+
11+
12+
Science Use-cases
13+
-----------------
14+
15+
IRSA Tutorials is collection of multiple notebooks that demonstrate the use of IRSA data services and tools for science use-cases.
16+
The following tutorial notebooks demonstrates the use of Firefly Python client:
17+
18+
- `Using Firefly visualization tools in Python to vet SEDs <https://caltech-ipac.github.io/irsa-tutorials/tutorials/firefly/SEDs_in_Firefly.html>`_
19+
- `Using Firefly visualization tools to understand the light curves of Solar System objects <https://caltech-ipac.github.io/irsa-tutorials/tutorials/firefly/NEOWISE_light_curve_demo.html>`_
20+
- `Using Firefly to Explore OpenUniverse2024 Data Preview Simulated Roman and Rubin Images <https://caltech-ipac.github.io/irsa-tutorials/tutorials/firefly/OpenUniverse2024Preview_Firefly.html>`_
21+
- `Euclid Q1: PHZ catalogs — Visualize with Firefly section <https://caltech-ipac.github.io/irsa-tutorials/tutorials/euclid_access/4_Euclid_intro_PHZ_catalog.html#vizualize-the-image-with-firefly>`_
22+
23+
24+
Other Examples
25+
---------------
26+
27+
For a full list of notebooks/scripts that demonstrate the use of
28+
Firefly Python client, refer to |nbviewer_examples| (rendered in nbviewer).
29+
30+
.. warning::
31+
Several of the notebooks in the examples directory use deprecated API (or discouraged API that is about to be deprecated) and will be updated soon.
32+
33+
34+
.. |nbviewer_examples| raw:: html
35+
36+
<a href="https://nbviewer.org/github/Caltech-IPAC/firefly_client/tree/master/examples/"
37+
target="_blank">this examples directory</a>

docs/usage/index.rst

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,4 @@ Using firefly_client
1212
viewing-tables
1313
charting
1414
callbacks-extensions
15-
16-
17-
Examples
18-
--------
19-
20-
You can find a list of notebooks/scripts that demonstrate the use of
21-
firefly_client in |nbviewer_examples|.
22-
23-
.. |nbviewer_examples| raw:: html
24-
25-
<a href="https://nbviewer.org/github/Caltech-IPAC/firefly_client/tree/master/examples/"
26-
target="_blank">this directory (rendered in nbviewer)</a>
15+
demo-notebooks

0 commit comments

Comments
 (0)