Skip to content
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

Allow additional plugin examples to be registered #50

Open
bollwyvl opened this issue Nov 17, 2022 · 3 comments
Open

Allow additional plugin examples to be registered #50

bollwyvl opened this issue Nov 17, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@bollwyvl
Copy link

Problem

Some extensions are themselves extensible (e.g. jupyterlab-markup, jupyterlab-lsp), and might like to advertise this in a more declarative way, especially in documentation/demo settings (e.g. #16).

Proposed Solution

Offer a new launcher card per template.

Extend the public api proposed on #49 to allow registering new plugin templates, with a few options including a documentation markdown file.

Additional context

Types

export interface IPluginExample {
  title: string;
  description: string;
  src: () => Promise<string>;
  doc?: () => Promise<string>;
  icon?: LabIcon;
  filename?: str;
}
export interface IPluginPlayground {
  addExample(example: IPluginExample): void;
}
@bollwyvl bollwyvl added the enhancement New feature or request label Nov 17, 2022
@krassowski
Copy link
Member

Dreaming a step further: plugin examples in notebooks. Not sure if we would want a kernel or just a magic for IPython.

@bollwyvl
Copy link
Author

bollwyvl commented Nov 17, 2022 via email

@bollwyvl
Copy link
Author

bollwyvl commented Nov 17, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants