# Astronomical Data in Python — Astronomical Data in Python

# Astronomical Data in Python

This notebook imports the libraries we need for the workshop.

If any of them are missing, you’ll get an error message.

If you don’t get any error messages, you are all set.

    from wget import download

    import pandas as pd
    import numpy as np

    import matplotlib as mpl
    import matplotlib.pyplot as plt
    from matplotlib.path import Path
    from matplotlib.patches import Polygon

    import astropy.coordinates as coord
    import astropy.units as u
    from astropy.table import Table

    import gala.coordinates as gc
    from pyia import GaiaData

    # Note: running this import statement opens a connection
    # to a Gaia server, so it will fail if you are not connected
    # to the internet.

    from astroquery.gaia import Gaia

    Created TAP+ (v1.2.1) - Connection:
    	Host: gea.esac.esa.int
    	Use HTTPS: True
    	Port: 443
    	SSL Port: 443
    Created TAP+ (v1.2.1) - Connection:
    	Host: geadata.esac.esa.int
    	Use HTTPS: True
    	Port: 443
    	SSL Port: 443

During the workshop, we might put some code on Slack and ask you to cut and paste it into the notebook.

If you are on a Mac, you might encounter a problem: