Skip to content

Commit

Permalink
Added Lumino Plugin Description
Browse files Browse the repository at this point in the history
Add a description to plugins #7008
  • Loading branch information
Dilip-Jain authored Oct 26, 2023
2 parents 28d99f5 + 53c9dcf commit 0bdbf9a
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 1 deletion.
26 changes: 25 additions & 1 deletion packages/application-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ namespace CommandIDs {
*/
const dirty: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:dirty',
description: 'Check if the application is dirty before closing the browser tab.',

Check failure on line 132 in packages/application-extension/src/index.ts

View workflow job for this annotation

GitHub Actions / Test Lint

Insert `⏎···`
autoStart: true,
requires: [ILabStatus, ITranslator],
activate: (
Expand Down Expand Up @@ -157,6 +158,7 @@ const dirty: JupyterFrontEndPlugin<void> = {
*/
const logo: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:logo',
description: 'The logo plugin.',
autoStart: true,
activate: (app: JupyterFrontEnd) => {
const baseUrl = PageConfig.getBaseUrl();
Expand Down Expand Up @@ -185,6 +187,7 @@ const logo: JupyterFrontEndPlugin<void> = {
*/
const opener: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:opener',
description: 'A plugin to open documents in the main area.',
autoStart: true,
requires: [IRouter, IDocumentManager],
optional: [ISettingRegistry],
Expand Down Expand Up @@ -253,6 +256,7 @@ const opener: JupyterFrontEndPlugin<void> = {
*/
const menus: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:menus',
description: 'A plugin to customize menus.',
requires: [IMainMenu],
autoStart: true,
activate: (app: JupyterFrontEnd, menu: IMainMenu) => {
Expand Down Expand Up @@ -283,6 +287,7 @@ const menus: JupyterFrontEndPlugin<void> = {
*/
const menuSpacer: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:menu-spacer',
description: 'A plugin to provide a spacer at rank 900 in the menu area.',
autoStart: true,
activate: (app: JupyterFrontEnd) => {
const menu = new Widget();
Expand All @@ -297,6 +302,7 @@ const menuSpacer: JupyterFrontEndPlugin<void> = {
*/
const pages: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:pages',
description: 'Add commands to open the tree and running pages.',
autoStart: true,
requires: [ITranslator],
optional: [ICommandPalette],
Expand Down Expand Up @@ -339,6 +345,7 @@ const pages: JupyterFrontEndPlugin<void> = {
*/
const pathOpener: JupyterFrontEndPlugin<INotebookPathOpener> = {
id: '@jupyter-notebook/application-extension:path-opener',
description: 'A plugin to open paths in new browser tabs.',
autoStart: true,
provides: INotebookPathOpener,
activate: (app: JupyterFrontEnd): INotebookPathOpener => {
Expand All @@ -351,6 +358,7 @@ const pathOpener: JupyterFrontEndPlugin<INotebookPathOpener> = {
*/
const paths: JupyterFrontEndPlugin<JupyterFrontEnd.IPaths> = {
id: '@jupyter-notebook/application-extension:paths',
description: 'The default paths for a Jupyter Notebook app.',
autoStart: true,
provides: JupyterFrontEnd.IPaths,
activate: (app: JupyterFrontEnd): JupyterFrontEnd.IPaths => {
Expand All @@ -366,9 +374,9 @@ const paths: JupyterFrontEndPlugin<JupyterFrontEnd.IPaths> = {
*/
const rendermime: JupyterFrontEndPlugin<IRenderMimeRegistry> = {
id: '@jupyter-notebook/application-extension:rendermime',
description: 'A plugin providing a rendermime registry.',
autoStart: true,
provides: IRenderMimeRegistry,
description: 'Provides the render mime registry.',
optional: [
IDocumentManager,
ILatexTypesetter,
Expand Down Expand Up @@ -439,6 +447,7 @@ const rendermime: JupyterFrontEndPlugin<IRenderMimeRegistry> = {
*/
const shell: JupyterFrontEndPlugin<INotebookShell> = {
id: '@jupyter-notebook/application-extension:shell',
description: 'The default Jupyter Notebook application shell.',
autoStart: true,
provides: INotebookShell,
optional: [ISettingRegistry],
Expand Down Expand Up @@ -505,6 +514,7 @@ const splash: JupyterFrontEndPlugin<ISplashScreen> = {
*/
const status: JupyterFrontEndPlugin<ILabStatus> = {
id: '@jupyter-notebook/application-extension:status',
description: 'The default JupyterLab application status provider.',
autoStart: true,
provides: ILabStatus,
activate: (app: JupyterFrontEnd) => {
Expand All @@ -520,6 +530,7 @@ const status: JupyterFrontEndPlugin<ILabStatus> = {
*/
const tabTitle: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:tab-title',
description: 'A plugin to display the document title in the browser tab title.',

Check failure on line 533 in packages/application-extension/src/index.ts

View workflow job for this annotation

GitHub Actions / Test Lint

Insert `⏎···`
autoStart: true,
requires: [INotebookShell],
activate: (app: JupyterFrontEnd, shell: INotebookShell) => {
Expand Down Expand Up @@ -556,6 +567,7 @@ const tabTitle: JupyterFrontEndPlugin<void> = {
*/
const title: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:title',
description: 'A plugin to display and rename the title of a file.',
autoStart: true,
requires: [INotebookShell, ITranslator],
optional: [IDocumentManager, IRouter, IToolbarWidgetRegistry],
Expand Down Expand Up @@ -654,6 +666,7 @@ const title: JupyterFrontEndPlugin<void> = {
*/
const topVisibility: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:top',
description: 'Plugin to toggle the top header visibility.',
requires: [INotebookShell, ITranslator],
optional: [ISettingRegistry, ICommandPalette],
activate: (
Expand Down Expand Up @@ -735,6 +748,7 @@ const topVisibility: JupyterFrontEndPlugin<void> = {
*/
const sidePanelVisibility: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:sidepanel',
description: 'Plugin to toggle the visibility of left or right side panel.',
requires: [INotebookShell, ITranslator],
optional: [IMainMenu, ICommandPalette],
autoStart: true,
Expand Down Expand Up @@ -950,6 +964,7 @@ const sidePanelVisibility: JupyterFrontEndPlugin<void> = {
*/
const tree: JupyterFrontEndPlugin<JupyterFrontEnd.ITreeResolver> = {
id: '@jupyter-notebook/application-extension:tree-resolver',
description: 'The default tree route resolver plugin.',
autoStart: true,
requires: [IRouter],
provides: JupyterFrontEnd.ITreeResolver,
Expand Down Expand Up @@ -1007,8 +1022,12 @@ const tree: JupyterFrontEndPlugin<JupyterFrontEnd.ITreeResolver> = {
},
};

/**
* Plugin to update tree path.
*/
const treePathUpdater: JupyterFrontEndPlugin<ITreePathUpdater> = {
id: '@jupyter-notebook/application-extension:tree-updater',
description: 'Plugin to update tree path.',
requires: [IRouter],
provides: ITreePathUpdater,
activate: (app: JupyterFrontEnd, router: IRouter) => {
Expand All @@ -1029,8 +1048,12 @@ const treePathUpdater: JupyterFrontEndPlugin<ITreePathUpdater> = {
autoStart: true,
};

/**
* Translator plugin
*/
const translator: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:translator',
description: 'Translator plugin',
requires: [INotebookShell, ITranslator],
autoStart: true,
activate: (
Expand All @@ -1047,6 +1070,7 @@ const translator: JupyterFrontEndPlugin<void> = {
*/
const zen: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/application-extension:zen',
description: 'Zen mode plugin.',
autoStart: true,
requires: [ITranslator],
optional: [ICommandPalette, INotebookShell],
Expand Down
2 changes: 2 additions & 0 deletions packages/lab-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ interface ISwitcherChoice {
*/
const interfaceSwitcher: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/lab-extension:interface-switcher',
description: 'A plugin to add custom toolbar items to the notebook page.',
autoStart: true,
requires: [ITranslator, INotebookTracker],
optional: [
Expand Down Expand Up @@ -218,6 +219,7 @@ const interfaceSwitcher: JupyterFrontEndPlugin<void> = {
*/
const launchNotebookTree: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/lab-extension:launch-tree',
description: 'A plugin to add a command to open the Jupyter Notebook Tree.',
autoStart: true,
requires: [ITranslator],
optional: [ICommandPalette],
Expand Down
8 changes: 8 additions & 0 deletions packages/notebook-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const SCROLLED_OUTPUTS_CLASS = 'jp-mod-outputsScrolled';
*/
const checkpoints: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/notebook-extension:checkpoints',
description: 'A plugin for the checkpoint indicator.',
autoStart: true,
requires: [IDocumentManager, ITranslator],
optional: [INotebookShell, IToolbarWidgetRegistry],
Expand Down Expand Up @@ -133,6 +134,7 @@ const checkpoints: JupyterFrontEndPlugin<void> = {
*/
const closeTab: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/notebook-extension:close-tab',
description: 'Add a command to close the browser tab when clicking on "Close and Shut Down".',

Check failure on line 137 in packages/notebook-extension/src/index.ts

View workflow job for this annotation

GitHub Actions / Test Lint

Insert `⏎···`
autoStart: true,
requires: [IMainMenu],
optional: [ITranslator],
Expand Down Expand Up @@ -167,6 +169,7 @@ const closeTab: JupyterFrontEndPlugin<void> = {
*/
const kernelLogo: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/notebook-extension:kernel-logo',
description: 'The kernel logo plugin.',
autoStart: true,
requires: [INotebookShell],
optional: [IToolbarWidgetRegistry],
Expand Down Expand Up @@ -230,6 +233,7 @@ const kernelLogo: JupyterFrontEndPlugin<void> = {
*/
const kernelStatus: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/notebook-extension:kernel-status',
description: 'A plugin to display the kernel status.',
autoStart: true,
requires: [INotebookShell, ITranslator],
activate: (
Expand Down Expand Up @@ -294,6 +298,7 @@ const kernelStatus: JupyterFrontEndPlugin<void> = {
*/
const scrollOutput: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/notebook-extension:scroll-output',
description: 'A plugin to enable scrolling for outputs by default.',
autoStart: true,
requires: [INotebookTracker],
optional: [ISettingRegistry],
Expand Down Expand Up @@ -379,6 +384,7 @@ const scrollOutput: JupyterFrontEndPlugin<void> = {
*/
const notebookToolsWidget: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/notebook-extension:notebook-tools',
description: 'A plugin to add the NotebookTools to the side panel.',
autoStart: true,
requires: [INotebookShell],
optional: [INotebookTools],
Expand Down Expand Up @@ -407,6 +413,7 @@ const notebookToolsWidget: JupyterFrontEndPlugin<void> = {
*/
const tabIcon: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/notebook-extension:tab-icon',
description: 'A plugin to update the tab icon based on the kernel status.',
autoStart: true,
requires: [INotebookTracker],
activate: (app: JupyterFrontEnd, tracker: INotebookTracker) => {
Expand Down Expand Up @@ -456,6 +463,7 @@ const tabIcon: JupyterFrontEndPlugin<void> = {
*/
const trusted: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/notebook-extension:trusted',
description: 'A plugin that adds a Trusted indicator to the menu area.',
autoStart: true,
requires: [INotebookShell, ITranslator],
activate: (
Expand Down
2 changes: 2 additions & 0 deletions packages/terminal-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import { find } from '@lumino/algorithm';
*/
const opener: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/terminal-extension:opener',
description: 'A plugin to open terminals in a new tab.',
requires: [IRouter, ITerminalTracker],
autoStart: true,
activate: (
Expand Down Expand Up @@ -62,6 +63,7 @@ const opener: JupyterFrontEndPlugin<void> = {
*/
const redirect: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/terminal-extension:redirect',
description: 'Open terminals in a new tab.',
requires: [ITerminalTracker],
optional: [INotebookPathOpener],
autoStart: true,
Expand Down
5 changes: 5 additions & 0 deletions packages/tree-extension/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ namespace CommandIDs {
*/
const createNew: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/tree-extension:new',
description: 'Plugin to add extra commands to the file browser to create new notebooks, files, consoles and terminals.',

Check failure on line 79 in packages/tree-extension/src/index.ts

View workflow job for this annotation

GitHub Actions / Test Lint

Insert `⏎···`
requires: [ITranslator],
optional: [IToolbarWidgetRegistry],
autoStart: true,
Expand Down Expand Up @@ -128,6 +129,7 @@ const createNew: JupyterFrontEndPlugin<void> = {
*/
const fileActions: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/tree-extension:file-actions',
description: 'A plugin to add file browser actions to the file browser toolbar.',

Check failure on line 132 in packages/tree-extension/src/index.ts

View workflow job for this annotation

GitHub Actions / Test Lint

Insert `⏎···`
autoStart: true,
requires: [IDefaultFileBrowser, IToolbarWidgetRegistry, ITranslator],
activate: (
Expand Down Expand Up @@ -177,6 +179,7 @@ const fileActions: JupyterFrontEndPlugin<void> = {
*/
const loadPlugins: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/tree-extension:load-plugins',
description: 'Plugin to load the default plugins that are loaded on all the Notebook pages (tree, edit, view, etc.) so they are visible in the settings editor.',

Check failure on line 182 in packages/tree-extension/src/index.ts

View workflow job for this annotation

GitHub Actions / Test Lint

Insert `⏎···`
autoStart: true,
requires: [ISettingRegistry],
activate(app: JupyterFrontEnd, settingRegistry: ISettingRegistry) {
Expand Down Expand Up @@ -233,6 +236,7 @@ const loadPlugins: JupyterFrontEndPlugin<void> = {
*/
const openFileBrowser: JupyterFrontEndPlugin<void> = {
id: '@jupyter-notebook/tree-extension:open-file-browser',
description: 'A plugin to add file browser commands for the tree view.',
requires: [INotebookTree, IDefaultFileBrowser],
autoStart: true,
activate: (
Expand All @@ -254,6 +258,7 @@ const openFileBrowser: JupyterFrontEndPlugin<void> = {
*/
const notebookTreeWidget: JupyterFrontEndPlugin<INotebookTree> = {
id: '@jupyter-notebook/tree-extension:widget',
description: 'A plugin to add the file browser widget to an INotebookShell.',
requires: [
IDefaultFileBrowser,
ITranslator,
Expand Down

0 comments on commit 0bdbf9a

Please sign in to comment.