Skip to content

Instantly share code, notes, and snippets.

@henchc
Last active July 14, 2019 20:57
Show Gist options
  • Save henchc/c5664b562bd8370916c05cb841ae3464 to your computer and use it in GitHub Desktop.
Save henchc/c5664b562bd8370916c05cb841ae3464 to your computer and use it in GitHub Desktop.
from yaml import safe_load as load
import requests
url_requirements = "https://raw.githubusercontent.com/jupyterhub/mybinder.org-deploy/master/mybinder/requirements.yaml"
requirements = load(requests.get(url_requirements).text)
binderhub_dep = [ii for ii in requirements['dependencies'] if ii['name'] == 'binderhub'][0]
bhub_live = binderhub_dep['version'].split('-')[-1]
print(bhub_live)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment