In [ ]:
import ipyaladin as ipyal

In [ ]:
aladin= ipyal.Aladin(survey= 'P/DSS2/red',
                              fov= 10,
                              target= 'LMC',
                              reticle_color= '#ff89ff')
aladin

In [ ]:
url= 'http://vizier.u-strasbg.fr/viz-bin/votable?-source=HIP2&-c=LMC&-out.add=_RAJ,_DEJ&-oc.form=dm&-out.meta=DhuL&-out.max=9999&-c.rm=180'
options= {'sourceSize':12, 'color': '#f08080'}
aladin.add_catalog_from_URL(url, options)

In [ ]:
def getObjectData(data):
    return data

def getObjectRaDecProduct(data):
    return data['ra']*data['dec']

# when trigerred, the listeners on the js side of the application will send a json object whose parameter data
# will be used by the python functions
# (data is a litteral object on the js side, it will be converted as a dictionary object on the python side)
aladin.add_listener('objectHovered', getObjectRaDecProduct)
aladin.add_listener('objectClicked', getObjectData)

In [ ]:
aladin_bis= ipyal.Aladin(target='269.956288 -23.823863', fov=1)
aladin_bis

In [ ]:
aladin_bis.set_color_map('rainbow')

In [ ]:
aladin_bis.get_JPEG_thumbnail()