Last active
July 14, 2019 20:57
-
-
Save henchc/c5664b562bd8370916c05cb841ae3464 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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