Created
March 22, 2019 14:36
-
-
Save lancelote/d1c74fbe8406e1b6b18172c6d4e59b3f to your computer and use it in GitHub Desktop.
UnsupportedTypeError_problem.datalore
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
{ | |
"version":"1.0", | |
"data":{ | |
"sheets":[ | |
{ | |
"name":"Sheet", | |
"blocks":[ | |
{ | |
"type":"CODE", | |
"text":"import logging\nimport requests" | |
}, | |
{ | |
"type":"CODE", | |
"text":"logger = logging.getLogger(__name__)" | |
}, | |
{ | |
"type":"CODE", | |
"text":"def get_stats():\n logger.info('pulling API')\n response = requests.get('https:\/\/pypi.org\/pypi\/requests\/json\/')\n logger.info('response %s', response.status_code)" | |
}, | |
{ | |
"type":"CODE", | |
"text":"def main():\n get_stats()" | |
}, | |
{ | |
"type":"CODE", | |
"text":"main()" | |
} | |
] | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment