[英]How can I ensure that my Quilt data package displays relevant information by default in the catalog UI view?
When viewing a Quilt data package in the catalog view, how do I ensure that the relevant information and data to my users bubbles up from N-depth of folders/files to the data package landing view?在目录视图中查看被子数据 package时,如何确保向我的用户提供的相关信息和数据从 N 深度的文件夹/文件冒泡到数据 package 登陆视图?
Create a file called quilt_summarize.json
[Reference] which is a configuration file that renders one or more data-package elements in both Bucket view and Packages view.创建一个名为
quilt_summarize.json
[Reference]的文件,它是一个配置文件,可在 Bucket 视图和 Packages 视图中呈现一个或多个数据包元素。 The contents of quilt_summarize.json
are a JSON array of files that you wish to preview in the catalog, from any depth in your data package. quilt_summarize.json
的内容是一个 JSON 文件数组,您希望从数据 package 的任何深度在目录中预览。 Each file may be represented as a string or, if you wish to provide more configuration, as an object.每个文件都可以表示为一个字符串,或者,如果您希望提供更多配置,则可以表示为 object。 You can preview all sorts of different files out-of-the-box including JSON, CSV, TXT, MD, XLS, XLSX, PARQUET, TSV, visualization libraries (including Vega, Altair, eCharts, and Voila), and iPython notebooks.
您可以开箱即用地预览各种不同的文件,包括 JSON、CSV、TXT、MD、XLS、XLSX、PARQUET、TSV、可视化库(包括 Vega、Altair、eCharts 和 Voila)和 iPython 笔记本。
Here's the syntax:这是语法:
// quilt_summarize.json
[
"file1.json",
"root_folder/second_level/third_level/file2.csv",
"notebooks/file3.ipynb"
]
You can also define multi-column outputs:您还可以定义多列输出:
[
"file1.json",
[{
"path": "file2.csv",
"width": "200px"
}, {
"path": "file3.ipynb",
"title": "Scientific notebook",
"description": "[See docs](https://docs.com)"
}]
]
which will render the file file1.json
first (and span the whole width of the screen), then the viewport will be split into N columns (based on N-length of the JSON array) in the widths defined in the attributes.这将首先渲染文件
file1.json
(并跨越屏幕的整个宽度),然后视口将按照属性中定义的宽度分成 N 列(基于 JSON 数组的 N 长度)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.