-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meta: proposals for customized UI plugin for Pipboard #40
Comments
I think the UI should be an ability for plugins.
We SHOULD point out where do we provide these HTTP APIs.
I think user don't need to specify the plugin parameter, pipboard is able to load automatically. |
Meeting Summary:
|
In details, we have the following pages and functionalities to be achieved:
To make extension works exactly, the below features/injections are needed:
Then let's see what's a Pipboard extension looks like: {
"name": "@pipcook/pipboard-tensorboard-extension",
"pipboard": {
"observe": [{
"event": "model.visualization",
"handler": "tensorboard.js#onselect"
}, {
"event": "pipeline.start",
"handler": "tensorboard.js#onpipelinestart
}]
}
} And import pipboard from '@pipboard/pipboard-extension-api';
export onselect = (enabled, pipeline) => {
if (enabled) {
pipboard.getPluginByType('model-define').enableTensorboard('/path/to/your/log');
}
};
export onpipelinestart = (options, pipeline) => {
const tensorboard = pipboard.createWindow('/path/to/your/page/url');
tensorboard.show();
} |
As discussed with @yorkie @wordcount , we would allow users to develop user-interface plugins to extend the ability of Pipboard. This issue will discuss the specification for ui-plugin.
Built-in Pipboard
Pipcook will provide a built-in web launcher and we name it as Pipboard as discussed in #29 , Basically default Pipboard will provide access to build pipeline, check logs and models. The basic structure is shown as below:
Customized UI Plugin
Customized user-interface plugin still belongs to pipcook plugin ecosystem (refer to #17 ). Currently plugins are categorized into:
Now for UI plugin, we will add the 8th category:
After the UI plugin is used, Pipboard will incorporate its user-interface into itself. For example, if a plugin called 'customize-demo' is developed, Pipboard will be shown as below and the content area will show contents of this plugin.
UI Plugin Developer Guide
The specification for UI plugin is as follows:
In case the UI will need to do some basic operations on local file system, we will provide several basic APIs to achieve this:
How to use UI Plugin
The user can follow these steps to use a specific plugin
I will provide a example plugin later on
Please help me have a review on this proposal @yorkie @wordcount
The text was updated successfully, but these errors were encountered: