ESASky Jupyter widget - some Jupyter Notebook sample files in jupyter_samples folder
- pyESASky-basic.ipynb
- pyESASky-astroquery.ipynb (integration and overlay of Gaia DR2 data)
For a development installation (requires npm),
$ git clone https://github.com/fab77/pyesasky.git
$ cd pyesasky
$ npm install
$ python setup.py install
$ pip install .
$ jupyter nbextension install --py --sys-prefix pyesasky
$ jupyter nbextension enable --py --sys-prefix pyesasky
or simply run
$ sh reinstall.sh
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')
$ 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