Run pywwt in the cloud using our BinderHub service
Articles,  Blog

Run pywwt in the cloud using our BinderHub service

Hello everyone, you’re watching an American
Astronomical Society WorldWide Telescope tutorial on using WWT’s new BinderHub
website. Sampling pywwt is now as simple as typing
a URL in your browser. The WWT BinderHub website serves custom cloud-powered
computing environments that are integrated with our “pywwt-notebooks”
GitHub repository. Once you’re in, you’ve opened an interactive
session where you can upload your own files, edit our notebooks of example workflows,
and download any changes you’ve made. Let’s open a new session and see these possibilities
in action. We begin by going to the “Quick Start” section
of pywwt’s documentation website and following a link to a custom JupyterLab
environment. Please find the ReadTheDocs link in the description
if you’d like to follow along. Once it loads, the workspace will be familiar
if you’ve used JupyterLab locally. If not, you’ll see what you need to get started
as we proceed. First, I’ll click here to upload a personal
file. I’m selecting a notebook, but you can also
upload files with data, plain text, Markdown, or anything else that might be of
use while you try pywwt. Looking at the first couple of cells, you’ll
notice that there are other imported packages besides pywwt. Our environment comes pre-loaded with packages
commonly used in astronomy like Numpy, Matplotlib, and the Astropy library,
so that’s no problem. We can also open another tab, this time using
one of the preloaded example notebooks. We are free to run the cells we’re interested
in, skip those we aren’t, make edits, and save any progress by pressing Control-S,
or Command-S on a Mac. Your changes will be stored on the cloud,
but be advised that they don’t affect the upstream pywwt-notebooks repository
and will disappear once your session ends. You can download them before that happens
by right-clicking the name of the file you’d like to keep and selecting the
“Download” option. Clicking the upload button afterward reveals
that the file is now on my machine and I’m free to continue tweaking
it locally after I end my session online. All in all, our BinderHub website is a tool
that gives you a quick sample of pywwt and demos some example workflows. Of course, if you want to continue the fun
after logging off, the next step is to install pywwt locally, which you can do
in just a couple of minutes if you follow the link on your screen. In the meantime, I’m Justin Otor, and on behalf
of the pywwt project, we’ll see you next time.

Leave a Reply

Your email address will not be published. Required fields are marked *