{"id":24804479,"url":"https://github.com/megbedell/astro-dataviz","last_synced_at":"2026-03-03T07:46:21.455Z","repository":{"id":54141617,"uuid":"133160985","full_name":"megbedell/astro-dataviz","owner":"megbedell","description":"demos of interactive data viz packages with astronomical data","archived":false,"fork":false,"pushed_at":"2018-05-16T20:44:23.000Z","size":1180,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T03:41:15.224Z","etag":null,"topics":["altair","astronomy","bokeh","data-visualization","matplotlib-animation"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/megbedell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-12T15:57:31.000Z","updated_at":"2024-07-16T20:44:08.000Z","dependencies_parsed_at":"2022-08-13T07:30:46.115Z","dependency_job_id":null,"html_url":"https://github.com/megbedell/astro-dataviz","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/megbedell/astro-dataviz","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megbedell%2Fastro-dataviz","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megbedell%2Fastro-dataviz/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megbedell%2Fastro-dataviz/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megbedell%2Fastro-dataviz/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/megbedell","download_url":"https://codeload.github.com/megbedell/astro-dataviz/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/megbedell%2Fastro-dataviz/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013703,"owners_count":26085393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["altair","astronomy","bokeh","data-visualization","matplotlib-animation"],"created_at":"2025-01-30T06:17:00.804Z","updated_at":"2025-10-13T05:31:16.830Z","avatar_url":"https://github.com/megbedell.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"This repository contains some IPython worksheets designed to demonstrate the relative capabilities of a few interactive plotting modules in python. These worksheets were made by Megan Bedell.\n\nSlides for a companion talk can be found [here](https://docs.google.com/presentation/d/1sGvM4S9nQByNv3_1aj4nH5ynvp_pQt5MI1hk7djMcwk/edit?usp=sharing).\n\n## Contents\n\nThe `animated_cepheids.ipynb` notebook shows how to make animated gifs or movies with matplotlib. As an example, we make a (somewhat cartoony) illustration of how Cepheid variable stars change in brightness over time using Gaia DR1 measurements.\n\nThe `interactive_exoplanets.ipynb` notebook demonstrates interactive plotting (tooltips, scroll and zoom, cross-linking plots, etc) with bokeh and altair. In this example, we use properties of confirmed exoplanets to make a mass-radius diagram.\n\nThe `interactive_gaia.ipynb` notebook ~~scales this up to large datasets with vaex and holoviews~~ is an unfinished look at using vaex and holoviews to view Gaia data. Although it's not extremely usable at the moment, it does contain links to other tutorials that may be helpful.\n\n## Required software\n\nThese notebooks run with Python 3 and [Jupyter notebooks](http://jupyter.org/).\n\nTo run `animated_cepheids.ipynb` you'll just need a basic scientific stack (numpy, matplotlib, pandas) and astroquery. All of these are easy to install with pip.\n\nTo run `interactive_exoplanets.ipynb` you'll additionally need bokeh and altair, also available with pip:\n\n```\npip install bokeh altair\n```\n\nIf you're going to run from a notebook, you're good to go. If you want to run in Jupyter Labs you'll need an extension to make the bokeh plots render:\n\n```\njupyter labextension install jupyterlab_bokeh\n```\n\nNote that altair is recommended for use with Jupyter Labs, but it still works in a notebook (with one extra line of setup code).\n\nFor `interactive_gaia.ipynb`, you'll need holoviews and vaex. The installation for these is more complex and has the potential to interfere with your normal python environment. One good way of installing is using [Anaconda distribution](http://continuum.io/downloads) and creating a virtual environment in which to install these packages. Here's a snippet of code to do this:\n\n```\nconda create -n dataviz_env python=3.6\nsource activate dataviz_env\npip install jupyterlab pandas astropy \nconda install -c conda-forge vaex\nconda install -c conda-forge holoviews\n```\n\n(Some of the conda installs can be done in pip too, but I ran into install issues there that didn't come up with conda. Your mileage may vary.)\n\nThen get the JupyterLab extension for holoviews:\n\n```\njupyter labextension install @pyviz/jupyterlab_holoviews\n```\n\n## Using these notebooks\n\nDownload this repository by running:\n\n```\ngit clone https://github.com/megbedell/astro-dataviz\n```\n\nThen go into the `astro-dataviz` directory and start a Jupyter notebook server:\n\n```\njupyter notebook\n```\n\nClick on a notebook file to run it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegbedell%2Fastro-dataviz","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegbedell%2Fastro-dataviz","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegbedell%2Fastro-dataviz/lists"}