向jupyter服务器发送请求。
jupyter-requests的Python项目详细描述
Jupyter请求
向jupyter服务器发送请求。对测试/探索jupyter restful api很有用。
命令行
从命令行向jupyter服务器发出请求。
jupyter_requests get api/contents
api
fromjupyter_requestsimportJupyterRequesterimportpprint# Port number of the serverport=8888# Get a requester object.r=JupyterRequester(port=port)endpoint='api/contents'response=r.get(endpoint)pprint(response)