Add support for a new curve data format in the Curves package converter system
日本語の概要は準備中です。原文の説明を表示しています。
Create a custom file viewer for the Datagrok file share browser
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Create a custom file viewer that is used by the Datagrok file share browser to display files with specific extensions.
/create-file-viewer [extensions] [package-path]
When this skill is invoked, help the user create a custom file viewer for one or more file extensions. Use the /ui skill for building the UI if necessary.
Add a function to package.ts (or a separate file imported by it) with the correct annotations. The function must:
file inputviewfileViewer tag plus a fileViewer-<ext> tag for each supported extension//name: myFileViewer
//tags: fileViewer, fileViewer-xyz, fileViewer-abc
//input: file file
//output: view v
export function myFileViewer(file: DG.FileInfo) {
let view = DG.View.create();
// Read file content and render it
file.readAsString().then((content) => {
let host = ui.div([]);
// Process and display content
host.innerText = content;
view.append(host);
});
return view;
}
Choose the appropriate method to read file content:
file.readAsString() - for text-based files (returns Promise<string>)file.readAsBytes() - for binary files (returns Promise<Uint8Array>)Example for binary files:
//tags: fileViewer
//input: file file
//output: view v
//meta.fileViewer: mol, sdf, cif
export function structureViewer(file: DG.FileInfo) {
let view = DG.View.create();
let host = ui.div([], 'd4-ngl-viewer');
file
.readAsBytes()
.then(bytes => {
// Process binary content
let blob = new Blob([bytes]);
// Render blob...
});
view.append(host);
return view;
}
meta.fileViewer can take multiple extensionsDG.TableView directly — do not wrap a grid in a custom DG.View// Good — file viewer for a single-table format
static async previewFoo(file: DG.FileInfo): Promise<DG.View> {
const bytes = await file.readAsBytes();
const data = await parseFoo(bytes);
const df = toDataFrame(data);
const view = DG.TableView.create(df, false);
view.name = file.name;
return view;
}
df.setTag('source.format', '...') to record where the data came fromminitab.version, prism.sheetId)description tag for column descriptionsDG.ViewreadAsString vs readAsBytesまだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Add support for a new curve data format in the Curves package converter system
日本語の概要は準備中です。原文の説明を表示しています。
Create info panels that appear in the context panel based on semantic types
日本語の概要は準備中です。原文の説明を表示しています。
Add a new single-objective optimization algorithm to the sci-comp library. Use when the user asks to implement a new optimizer (e.g. gradient descent, BFGS, simulated annealing, differential evolution).
日本語の概要は準備中です。原文の説明を表示しています。
Add unit tests to a Datagrok package
日本語の概要は準備中です。原文の説明を表示しています。
Answer a "how do I …" question about the platform with a Gherkin scenario on @datagrok-libraries/bdd that is filmed into a how-to video (grok-bdd guide), so the answer is demonstrated, sent as a video plus numbered steps, and kept as a regression test
日本語の概要は準備中です。原文の説明を表示しています。
Translate hand-written Playwright specs (or any existing UI tests) into Gherkin features on @datagrok-libraries/bdd, then prove the features test what they claim by backward-matching them against the originals with independent reviewers, and fix the gaps in the core, the library and the features
日本語の概要は準備中です。原文の説明を表示しています。