Skip to main content
Jdaviz logo Zenodo DOI GitHub Actions CI Status https://codecov.io/gh/spacetelescope/jdaviz/branch/main/graph/badge.svg Documentation Status Powered by Astropy

jdaviz is a package of astronomical data analysis visualization tools based on the Jupyter platform. It is one tool that is a part of STScI’s larger Data Analysis Tools Ecosystem. This GUI-based tool links data visualization and interactive analysis. It is designed to work within a Jupyter notebook cell, as a standalone desktop application, or as embedded windows within a website – all with nearly-identical user interfaces. jdaviz is under active development, and users who encounter bugs in existing features are encouraged to open issues in this repository.

jdaviz provides data viewers and analysis plugins that can be flexibly combined as desired to create interactive applications that fit your workflow. In the most recent release (5.0), jdaviz has been refactored to combine what were previously separate ‘configurations’ (Cubeviz, Specviz, Specviz2D, and Imviz) into a single, flexible application that supports mixed viewer types.

Image viewers support 2D images, and include tools for panning, zooming, and aperture photometry, catalogs, and other quick-look analysis. Spectrum viewers support 1D and 2D spectra, and include tools for extraction, measuring spectral features, fitting lines, among other analysis and quick-look tasks. Cube viewers provide a view of spectroscopic data cubes (like those to be produced by JWST MIRI), along with 1D spectra extracted from the cube. Table viewers, Scatter viewers and Histogram viewers allow for interactive exploration of tabular data, including source catalogs.

Mosviz still exists as an standalone configuration and as of v5.0 has not yet been integrated into the main application. It is a visualization tool for many astronomical spectra, typically the output of a multi-object spectrograph (e.g., JWST NIRSpec), and includes viewers for 1D and 2D spectra as well as contextual information like on-sky views of the spectrograph slit.

This tool is designed with instrument modes from the James Webb Space Telescope (JWST) in mind, but the tool should be flexible enough to read in data from many astronomical telescopes. The documentation provides a complete table of all supported modes.

Installing

You may want to consider installing jdaviz in a new virtual or conda environment to avoid version conflicts with other packages you may have installed, for example:

conda create -n jdaviz-env python=3.13
conda activate jdaviz-env

Installing the released version can be done using pip:

pip install jdaviz --upgrade

For details on installing and using Jdaviz, see the Jdaviz Installation.

Quick Start

Once installed, jdaviz can be run either as a standalone web application or in a Jupyter notebook. See the Jdaviz Quickstart guide for more details on installation and usage.

For more information on supported data types for loading data into jdaviz, see the documentation for viewers, data formats, and data sources.

As a Web Application

jdaviz provides a command-line tool to start the web application. To see the syntax and usage, from a terminal, type, for example:

jdaviz --help
jdaviz /path/to/data/spectral_file

For more information on the command line interface, see the Jdaviz docs.

In a Jupyter Notebook

The power of jdaviz is that it can integrated into your Jupyter notebook workflow:

import jdaviz as jd

jd.show()

jdaviz also provides a directory of sample notebooks to test the application, located in the notebooks sub-directory of the git repository. CubevizExample.ipynb is provided as an example that loads a JWST data cube with the Cubeviz configuration. To run the provided example, start the Jupyter kernel with the notebook path:

jupyter notebook /path/to/jdaviz/notebooks/CubevizExample.ipynb

Help

If you uncover any issues or bugs, you can open a GitHub issue if they are not already reported. For faster responses, however, we encourage you to submit a JWST Help Desk Ticket.

Recordings and instructional notebooks from live Jdaviz tutorials (as part of the JWebbinars series) can be found at the JWebbinar website under the “Materials and Videos” expandable section. Scroll down to the bottom of that section to find materials from the most recent session (JWebbinar 24, March 2023).

License & Attribution

This project is Copyright (c) JDADF Developers and licensed under the terms of the BSD 3-Clause license. This package is based upon the Astropy package template which is licensed under the BSD 3-clause licence. See the licenses folder for more information.

Cite jdaviz via our Zenodo record: https://doi.org/10.5281/zenodo.5513927.

Contributing

We love contributions! jdaviz is open source, built on open source, and we’d love to have you hang out in our community.

Imposter syndrome disclaimer: We want your help. No, really.

There may be a little voice inside your head that is telling you that you’re not ready to be an open source contributor; that your skills aren’t nearly good enough to contribute. What could you possibly offer a project like this one?

We assure you - the little voice in your head is wrong. If you can write code at all, you can contribute code to open source. Contributing to open source projects is a fantastic way to advance one’s coding skills. Writing perfect code isn’t the measure of a good developer (that would disqualify all of us!); it’s trying to create something, making mistakes, and learning from those mistakes. That’s how we all improve, and we are happy to help others learn.

Being an open source contributor doesn’t just mean writing code, either. You can help out by writing documentation, tests, or even giving feedback about the project (and yes - that includes giving feedback about the contribution process). Some of these contributions may be the most valuable to the project as a whole, because you’re coming to the project with fresh eyes, so you can see the errors and assumptions that seasoned contributors have glossed over.

Note: This disclaimer was originally written by Adrienne Lowe for a PyCon talk, and was adapted by jdaviz based on its use in the README file for the MetPy project.

Metadata

Release files for jdaviz 5.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jdaviz 5.1.0
File Size Uploaded Provenance Actions
jdaviz-5.1.0.tar.gz 3.1 MB Without provenance Details for jdaviz-5.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jdaviz 5.1.0
File Interpreter ABI Platform Actions
jdaviz-5.1.0-py3-none-any.whl Python 3 none any Details for jdaviz-5.1.0-py3-none-any.whl

Total release size: 5.6 MB

Release files / jdaviz-5.1.0.tar.gz

Download URL jdaviz-5.1.0.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
c0f9ef059266e830c098a87b3df3c065e900fc78bd3abcad0d4d9c9869ac87ac
BLAKE2b-256 checksum
How to use checksums
46c3e4c8f8fa3ef2c1566b8a574debd3728934e3aa458c89e214a8f440764f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / jdaviz-5.1.0-py3-none-any.whl

Download URL jdaviz-5.1.0-py3-none-any.whl
Size 2.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
ac1987aebf3984625b33023acda541e510232796a03988252608dba674946464
BLAKE2b-256 checksum
How to use checksums
dd320580e10b0e94707f8d0830a978f74fcff3d2f87bda348c560571fce989d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for jdaviz 5.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

5.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page