赞
踩
微服务 restful
“Data science enables the creation of data products.” – Mike Loukides in What is data science?
“数据科学可以创建数据产品。” – Mike Loukides,《 什么是数据科学》?
Data products take on many forms. Web articles, dashboard applications, and cloud services are all common vehicles for delivering value from data. Tools that help produce artifacts such as these are a necessary part of any data mining methodology.
数据产品采用多种形式。 Web文章 , 仪表板应用程序和云服务都是从数据传递价值的常见工具。 帮助产生此类工件的工具是任何数据挖掘方法的必要组成部分。
In the Project Jupyter ecosystem, many tools exist to aid the creation of data products from notebooks:
在Jupyter项目生态系统中,存在许多工具可以帮助从笔记本计算机创建数据产品:
Today, I’d like to introduce a new tool and capability. The Jupyter kernel gateway can turn notebooks into RESTful web APIs, giving notebook authors a way of making their work immediately useful to software developers, particularly in microservice architectures. Consider the following use cases:
今天,我想介绍一种新的工具和功能。 Jupyter内核网关可以将笔记本变成RESTful Web API,为笔记本作者提供了一种使他们的工作立即对软件开发人员有用的方法,特别是在微服务体系结构中 。 考虑以下用例:
To explain the mechanics of turning notebooks into APIs, let’s walk through a simple example: the scotch recommendation engine from our prior dashboards post. This time, we’ll outline how to create and deploy a web API from the notebook instead of a visual dashboard:
为了说明将笔记本转换为API的机制,让我们来看一个简单的示例:先前仪表板帖子中的苏格兰威士忌推荐引擎。 这次,我们将概述如何从笔记本而不是可视仪表板创建和部署Web API:
GET /scotches
– returns a list of all known scotches as JSONGET /scotches/:scotch
– returns the features of a particular scotch as JSONGET /scotches/:scotch/similar?count=N
– returns the names and scores of N similar scotches as JSONGET /scotches
–以JSON返回所有已知苏格兰威士忌的列表 GET /scotches/:scotch
–将特定苏格兰威士忌的特征作为JSON返回 GET /scotches/:scotch/similar?count=N
–以JSON形式返回N个相似GET /scotches/:scotch/similar?count&
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。