ESASky Jupyter widget
For a development installation (requires npm),
$ git clone https://github.com/fab77/pyesasky.git
$ cd pyesasky
$ python setup.py install
$ pip install .
$ jupyter nbextension install --py --sys-prefix pyesasky
$ jupyter nbextension enable --py --sys-prefix pyesasky
Once installed open Jupyter notebook
$ jupyter notebook
from pyesasky.pyesasky import ESASkyWidget
esasky = ESASkyWidget()
esasky
esasky.goToTargetName('M51')
esasky.setGoToRADec('10 0 2', '+10 1 23') esasky.setGoToRADec('45', '+81.7')
esasky.setFoV(1)
esasky.setHiPSColorPalette('PLANCK')
esasky.setHiPSColorPalette('NATIVE')
from pyesasky.pyesasky import Catalogue
catalogue = Catalogue('test catalogue', 'equatorial', '#ee2345', 10)
catalogue.addSource('A', '105.69239256', '-8.45235969')
catalogue.addSource('B', '105.70779763', '-8.31350997')
esasky.overlayCatalogue(catalogue)
esasky.setGoToRADec('105.69239256', '-8.45235969')
$ cd pyesasky
$ pip uninstall pyesasky
$ python setup.py clean
$ npm run clean
$ jupyter nbextension uninstall pyesasky
In case the uninstall will complain about a missing 'rimraf' command, try that first and then rerun the uninstall procedure:
$ npm install webpack-dev-server rimraf webpack -g