First round of renaming to notebook

pull/6294/head
Jeremy Tuloup 4 years ago
parent c2f991739c
commit 78f745573c

@ -45,7 +45,7 @@ jobs:
- name: Install the package
run: |
python -m pip install .
jupyter labextension list 2>&1 | grep -ie "@retrolab/lab-extension.*enabled.*ok" -
jupyter labextension list 2>&1 | grep -ie "@jupyter-notebook/lab-extension.*enabled.*ok" -
jupyter server extension list 2>&1 | grep -ie "retrolab.*enabled" -
python -m jupyterlab.browser_check
@ -103,7 +103,7 @@ jobs:
- name: Validate the install
run: |
jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "@retrolab/lab-extension.*enabled.*ok" -
jupyter labextension list 2>&1 | grep -ie "@jupyter-notebook/lab-extension.*enabled.*ok" -
jupyter server extension list
jupyter server extension list 2>&1 | grep -ie "retrolab.*enabled" -
jupyter retro --version

@ -56,9 +56,6 @@ Config dir: /home/username/miniforge3/envs/retrolab/etc/jupyter
retrolab enabled
- Validating retrolab...
retrolab 0.1.0rc2 OK
nbclassic enabled
- Validating nbclassic...
nbclassic OK
Config dir: /usr/local/etc/jupyter
```

@ -60,15 +60,15 @@ async function main() {
const disabled = [];
// TODO: formalize the way the set of initial extensions and plugins are specified
let baseMods = [
// @retrolab plugins
require('@retrolab/application-extension'),
require('@retrolab/console-extension'),
require('@retrolab/docmanager-extension'),
require('@retrolab/documentsearch-extension'),
require('@retrolab/help-extension'),
require('@retrolab/notebook-extension'),
// @jupyter-notebook plugins
require('@jupyter-notebook/application-extension'),
require('@jupyter-notebook/console-extension'),
require('@jupyter-notebook/docmanager-extension'),
require('@jupyter-notebook/documentsearch-extension'),
require('@jupyter-notebook/help-extension'),
require('@jupyter-notebook/notebook-extension'),
// to handle opening new tabs after creating a new terminal
require('@retrolab/terminal-extension'),
require('@jupyter-notebook/terminal-extension'),
// @jupyterlab plugins
require('@jupyterlab/application-extension').default.filter(({ id }) =>
@ -160,7 +160,7 @@ async function main() {
'@jupyterlab/filebrowser-extension:share-file'
].includes(id)
),
require('@retrolab/tree-extension'),
require('@jupyter-notebook/tree-extension'),
require('@jupyterlab/running-extension')
]);
break;
@ -319,7 +319,7 @@ async function main() {
console.error(reason);
});
const RetroApp = require('@retrolab/application').RetroApp;
const RetroApp = require('@jupyter-notebook/application').RetroApp;
const app = new RetroApp({ mimeExtensions });
app.registerPluginModules(mods);

@ -1,5 +1,5 @@
{
"name": "@retrolab/app",
"name": "@jupyter-notebook/app",
"version": "0.4.0-alpha.1",
"private": true,
"scripts": {
@ -78,16 +78,16 @@
"@lumino/signaling": "~1.10.1",
"@lumino/virtualdom": "~1.14.1",
"@lumino/widgets": "~1.31.1",
"@retrolab/application": "~0.4.0-alpha.1",
"@retrolab/application-extension": "~0.4.0-alpha.1",
"@retrolab/console-extension": "~0.4.0-alpha.1",
"@retrolab/docmanager-extension": "~0.4.0-alpha.1",
"@retrolab/documentsearch-extension": "~0.4.0-alpha.1",
"@retrolab/help-extension": "~0.4.0-alpha.1",
"@retrolab/notebook-extension": "~0.4.0-alpha.1",
"@retrolab/terminal-extension": "~0.4.0-alpha.1",
"@retrolab/tree-extension": "~0.4.0-alpha.1",
"@retrolab/ui-components": "~0.4.0-alpha.1",
"@jupyter-notebook/application": "~0.4.0-alpha.1",
"@jupyter-notebook/application-extension": "~0.4.0-alpha.1",
"@jupyter-notebook/console-extension": "~0.4.0-alpha.1",
"@jupyter-notebook/docmanager-extension": "~0.4.0-alpha.1",
"@jupyter-notebook/documentsearch-extension": "~0.4.0-alpha.1",
"@jupyter-notebook/help-extension": "~0.4.0-alpha.1",
"@jupyter-notebook/notebook-extension": "~0.4.0-alpha.1",
"@jupyter-notebook/terminal-extension": "~0.4.0-alpha.1",
"@jupyter-notebook/tree-extension": "~0.4.0-alpha.1",
"@jupyter-notebook/ui-components": "~0.4.0-alpha.1",
"react": "~17.0.2",
"react-dom": "~17.0.2",
"yjs": "~13.5.27"
@ -122,16 +122,16 @@
"@jupyterlab/translation-extension": "^4.0.0-alpha.5",
"@jupyterlab/user-extension": "^4.0.0-alpha.5",
"@jupyterlab/vega5-extension": "^4.0.0-alpha.5",
"@retrolab/application": "^0.4.0-alpha.1",
"@retrolab/application-extension": "^0.4.0-alpha.1",
"@retrolab/console-extension": "^0.4.0-alpha.1",
"@retrolab/docmanager-extension": "^0.4.0-alpha.1",
"@retrolab/documentsearch-extension": "^0.4.0-alpha.1",
"@retrolab/help-extension": "^0.4.0-alpha.1",
"@retrolab/notebook-extension": "^0.4.0-alpha.1",
"@retrolab/terminal-extension": "^0.4.0-alpha.1",
"@retrolab/tree-extension": "^0.4.0-alpha.1",
"@retrolab/ui-components": "^0.4.0-alpha.1"
"@jupyter-notebook/application": "^0.4.0-alpha.1",
"@jupyter-notebook/application-extension": "^0.4.0-alpha.1",
"@jupyter-notebook/console-extension": "^0.4.0-alpha.1",
"@jupyter-notebook/docmanager-extension": "^0.4.0-alpha.1",
"@jupyter-notebook/documentsearch-extension": "^0.4.0-alpha.1",
"@jupyter-notebook/help-extension": "^0.4.0-alpha.1",
"@jupyter-notebook/notebook-extension": "^0.4.0-alpha.1",
"@jupyter-notebook/terminal-extension": "^0.4.0-alpha.1",
"@jupyter-notebook/tree-extension": "^0.4.0-alpha.1",
"@jupyter-notebook/ui-components": "^0.4.0-alpha.1"
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.0-alpha.5",
@ -158,14 +158,14 @@
"jupyterlab": {
"name": "RetroLab",
"extensions": [
"@retrolab/application-extension",
"@retrolab/console-extension",
"@retrolab/docmanager-extension",
"@retrolab/documentsearch-extension",
"@retrolab/help-extension",
"@retrolab/notebook-extension",
"@retrolab/terminal-extension",
"@retrolab/tree-extension",
"@jupyter-notebook/application-extension",
"@jupyter-notebook/console-extension",
"@jupyter-notebook/docmanager-extension",
"@jupyter-notebook/documentsearch-extension",
"@jupyter-notebook/help-extension",
"@jupyter-notebook/notebook-extension",
"@jupyter-notebook/terminal-extension",
"@jupyter-notebook/tree-extension",
"@jupyterlab/application-extension",
"@jupyterlab/apputils-extension",
"@jupyterlab/codemirror-extension",

@ -1,8 +1,8 @@
{
"name": "@retrolab/buildutils",
"name": "@jupyter-notebook/buildutils",
"version": "0.4.0-alpha.1",
"private": true,
"description": "RetroLab - Build Utilities",
"description": "Jupyter Notebook - Build Utilities",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"

@ -27,14 +27,19 @@ commander
true
);
const source = path.resolve(options.source ?? process.cwd());
const sourceDir = path.join(source, 'retrolab', 'schemas', '@retrolab');
const sourceDir = path.join(
source,
'retrolab',
'schemas',
'@jupyter-notebook'
);
const destDir = path.join(
prefix,
'share',
'jupyter',
'lab',
'schemas',
'@retrolab'
'@jupyter-notebook'
);
if (overwrite) {
try {

@ -1,7 +0,0 @@
{
"NotebookApp": {
"nbserver_extensions": {
"retrolab": true
}
}
}

@ -1,5 +1,5 @@
{
"name": "@retrolab/root",
"name": "@jupyter-notebook/root",
"version": "0.1.0",
"private": true,
"homepage": "https://github.com/jupyterlab/retrolab",
@ -36,8 +36,8 @@
"test": "lerna run test",
"update:dependency": "node ./node_modules/@jupyterlab/buildutils/lib/update-dependency.js --lerna",
"watch": "run-p watch:lib watch:app",
"watch:app": "lerna exec --stream --scope \"@retrolab/app\" jlpm watch",
"watch:lib": "lerna exec --stream --scope @retrolab/metapackage jlpm watch"
"watch:app": "lerna exec --stream --scope \"@jupyter-notebook/app\" jlpm watch",
"watch:lib": "lerna exec --stream --scope @jupyter-notebook/metapackage jlpm watch"
},
"husky": {
"hooks": {

@ -1,5 +1,5 @@
{
"name": "@retrolab/metapackage",
"name": "@jupyter-notebook/metapackage",
"private": true,
"version": "0.4.0-alpha.1",
"description": "RetroLab - Metapackage",
@ -20,17 +20,17 @@
"watch": "tsc -b -w --preserveWatchOutput"
},
"dependencies": {
"@retrolab/application": "file:../application",
"@retrolab/application-extension": "file:../application-extension",
"@retrolab/console-extension": "file:../console-extension",
"@retrolab/docmanager-extension": "file:../docmanager-extension",
"@retrolab/documentsearch-extension": "file:../documentsearch-extension",
"@retrolab/help-extension": "file:../help-extension",
"@retrolab/lab-extension": "file:../lab-extension",
"@retrolab/notebook-extension": "file:../notebook-extension",
"@retrolab/terminal-extension": "file:../terminal-extension",
"@retrolab/tree-extension": "file:../tree-extension",
"@retrolab/ui-components": "file:../ui-components"
"@jupyter-notebook/application": "file:../application",
"@jupyter-notebook/application-extension": "file:../application-extension",
"@jupyter-notebook/console-extension": "file:../console-extension",
"@jupyter-notebook/docmanager-extension": "file:../docmanager-extension",
"@jupyter-notebook/documentsearch-extension": "file:../documentsearch-extension",
"@jupyter-notebook/help-extension": "file:../help-extension",
"@jupyter-notebook/lab-extension": "file:../lab-extension",
"@jupyter-notebook/notebook-extension": "file:../notebook-extension",
"@jupyter-notebook/terminal-extension": "file:../terminal-extension",
"@jupyter-notebook/tree-extension": "file:../tree-extension",
"@jupyter-notebook/ui-components": "file:../ui-components"
},
"devDependencies": {
"typescript": "~4.1.3"

@ -1,11 +1,11 @@
import '@retrolab/application';
import '@retrolab/application-extension';
import '@retrolab/console-extension';
import '@retrolab/docmanager-extension';
import '@retrolab/documentsearch-extension';
import '@retrolab/help-extension';
import '@retrolab/lab-extension';
import '@retrolab/notebook-extension';
import '@retrolab/terminal-extension';
import '@retrolab/tree-extension';
import '@retrolab/ui-components';
import '@jupyter-notebook/application';
import '@jupyter-notebook/application-extension';
import '@jupyter-notebook/console-extension';
import '@jupyter-notebook/docmanager-extension';
import '@jupyter-notebook/documentsearch-extension';
import '@jupyter-notebook/help-extension';
import '@jupyter-notebook/lab-extension';
import '@jupyter-notebook/notebook-extension';
import '@jupyter-notebook/terminal-extension';
import '@jupyter-notebook/tree-extension';
import '@jupyter-notebook/ui-components';

@ -1,7 +1,7 @@
{
"name": "@retrolab/application-extension",
"name": "@jupyter-notebook/application-extension",
"version": "0.4.0-alpha.1",
"description": "RetroLab - Application Extension",
"description": "Jupyter Notebook - Application Extension",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"
@ -54,8 +54,8 @@
"@lumino/coreutils": "^1.12.0",
"@lumino/disposable": "^1.10.1",
"@lumino/widgets": "^1.31.1",
"@retrolab/application": "^0.4.0-alpha.1",
"@retrolab/ui-components": "^0.4.0-alpha.1"
"@jupyter-notebook/application": "^0.4.0-alpha.1",
"@jupyter-notebook/ui-components": "^0.4.0-alpha.1"
},
"devDependencies": {
"rimraf": "~3.0.0",

@ -31,9 +31,13 @@ import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { ITranslator } from '@jupyterlab/translation';
import { RetroApp, RetroShell, IRetroShell } from '@retrolab/application';
import {
RetroApp,
RetroShell,
INotebookShell
} from '@jupyter-notebook/application';
import { jupyterIcon } from '@retrolab/ui-components';
import { jupyterIcon } from '@jupyter-notebook/ui-components';
import { PromiseDelegate } from '@lumino/coreutils';
@ -100,7 +104,7 @@ namespace CommandIDs {
* Check if the application is dirty before closing the browser tab.
*/
const dirty: JupyterFrontEndPlugin<void> = {
id: '@retrolab/application-extension:dirty',
id: '@jupyter-notebook/application-extension:dirty',
autoStart: true,
requires: [ILabStatus, ITranslator],
activate: (
@ -128,7 +132,7 @@ const dirty: JupyterFrontEndPlugin<void> = {
* The logo plugin.
*/
const logo: JupyterFrontEndPlugin<void> = {
id: '@retrolab/application-extension:logo',
id: '@jupyter-notebook/application-extension:logo',
autoStart: true,
activate: (app: JupyterFrontEnd) => {
const baseUrl = PageConfig.getBaseUrl();
@ -154,7 +158,7 @@ const logo: JupyterFrontEndPlugin<void> = {
* A plugin to open documents in the main area.
*/
const opener: JupyterFrontEndPlugin<void> = {
id: '@retrolab/application-extension:opener',
id: '@jupyter-notebook/application-extension:opener',
autoStart: true,
requires: [IRouter, IDocumentManager],
activate: (
@ -201,7 +205,7 @@ const opener: JupyterFrontEndPlugin<void> = {
* TODO: use this plugin to customize the menu items and their order
*/
const menus: JupyterFrontEndPlugin<void> = {
id: '@retrolab/application-extension:menus',
id: '@jupyter-notebook/application-extension:menus',
requires: [IMainMenu],
autoStart: true,
activate: (app: JupyterFrontEnd, menu: IMainMenu) => {
@ -231,7 +235,7 @@ const menus: JupyterFrontEndPlugin<void> = {
* Add commands to open the tree and running pages.
*/
const pages: JupyterFrontEndPlugin<void> = {
id: '@retrolab/application-extension:pages',
id: '@jupyter-notebook/application-extension:pages',
autoStart: true,
requires: [ITranslator],
optional: [ICommandPalette, IMainMenu],
@ -277,7 +281,7 @@ const pages: JupyterFrontEndPlugin<void> = {
* The default paths for a RetroLab app.
*/
const paths: JupyterFrontEndPlugin<JupyterFrontEnd.IPaths> = {
id: '@retrolab/application-extension:paths',
id: '@jupyter-notebook/application-extension:paths',
autoStart: true,
provides: JupyterFrontEnd.IPaths,
activate: (app: JupyterFrontEnd): JupyterFrontEnd.IPaths => {
@ -292,7 +296,7 @@ const paths: JupyterFrontEndPlugin<JupyterFrontEnd.IPaths> = {
* The default URL router provider.
*/
const router: JupyterFrontEndPlugin<IRouter> = {
id: '@retrolab/application-extension:router',
id: '@jupyter-notebook/application-extension:router',
autoStart: true,
provides: IRouter,
requires: [JupyterFrontEnd.IPaths],
@ -317,7 +321,7 @@ const router: JupyterFrontEndPlugin<IRouter> = {
* The default session dialogs plugin
*/
const sessionDialogs: JupyterFrontEndPlugin<ISessionContextDialogs> = {
id: '@retrolab/application-extension:session-dialogs',
id: '@jupyter-notebook/application-extension:session-dialogs',
provides: ISessionContextDialogs,
autoStart: true,
activate: () => sessionContextDialogs
@ -326,8 +330,8 @@ const sessionDialogs: JupyterFrontEndPlugin<ISessionContextDialogs> = {
/**
* The default RetroLab application shell.
*/
const shell: JupyterFrontEndPlugin<IRetroShell> = {
id: '@retrolab/application-extension:shell',
const shell: JupyterFrontEndPlugin<INotebookShell> = {
id: '@jupyter-notebook/application-extension:shell',
activate: (app: JupyterFrontEnd) => {
if (!(app.shell instanceof RetroShell)) {
throw new Error(`${shell.id} did not find a RetroShell instance.`);
@ -335,7 +339,7 @@ const shell: JupyterFrontEndPlugin<IRetroShell> = {
return app.shell;
},
autoStart: true,
provides: IRetroShell
provides: INotebookShell
};
/**
@ -344,7 +348,7 @@ const shell: JupyterFrontEndPlugin<IRetroShell> = {
* in https://github.com/jupyterlab/jupyterlab/pull/11900
*/
const spacer: JupyterFrontEndPlugin<void> = {
id: '@retrolab/application-extension:spacer',
id: '@jupyter-notebook/application-extension:spacer',
autoStart: true,
activate: (app: JupyterFrontEnd) => {
const top = new Widget();
@ -363,7 +367,7 @@ const spacer: JupyterFrontEndPlugin<void> = {
* The default JupyterLab application status provider.
*/
const status: JupyterFrontEndPlugin<ILabStatus> = {
id: '@retrolab/application-extension:status',
id: '@jupyter-notebook/application-extension:status',
autoStart: true,
provides: ILabStatus,
activate: (app: JupyterFrontEnd) => {
@ -378,10 +382,10 @@ const status: JupyterFrontEndPlugin<ILabStatus> = {
* A plugin to display the document title in the browser tab title
*/
const tabTitle: JupyterFrontEndPlugin<void> = {
id: '@retrolab/application-extension:tab-title',
id: '@jupyter-notebook/application-extension:tab-title',
autoStart: true,
requires: [IRetroShell],
activate: (app: JupyterFrontEnd, shell: IRetroShell) => {
requires: [INotebookShell],
activate: (app: JupyterFrontEnd, shell: INotebookShell) => {
const setTabTitle = () => {
const current = shell.currentWidget;
if (current instanceof ConsolePanel) {
@ -414,13 +418,13 @@ const tabTitle: JupyterFrontEndPlugin<void> = {
* A plugin to display and rename the title of a file
*/
const title: JupyterFrontEndPlugin<void> = {
id: '@retrolab/application-extension:title',
id: '@jupyter-notebook/application-extension:title',
autoStart: true,
requires: [IRetroShell, ITranslator],
requires: [INotebookShell, ITranslator],
optional: [IDocumentManager, IRouter],
activate: (
app: JupyterFrontEnd,
shell: IRetroShell,
shell: INotebookShell,
translator: ITranslator,
docManager: IDocumentManager | null,
router: IRouter | null
@ -506,12 +510,12 @@ const title: JupyterFrontEndPlugin<void> = {
* Plugin to toggle the top header visibility.
*/
const topVisibility: JupyterFrontEndPlugin<void> = {
id: '@retrolab/application-extension:top',
requires: [IRetroShell, ITranslator],
id: '@jupyter-notebook/application-extension:top',
requires: [INotebookShell, ITranslator],
optional: [IMainMenu, ISettingRegistry],
activate: (
app: JupyterFrontEnd<JupyterFrontEnd.IShell>,
retroShell: IRetroShell,
retroShell: INotebookShell,
translator: ITranslator,
menu: IMainMenu | null,
settingRegistry: ISettingRegistry | null
@ -580,7 +584,7 @@ const topVisibility: JupyterFrontEndPlugin<void> = {
* The default tree route resolver plugin.
*/
const tree: JupyterFrontEndPlugin<JupyterFrontEnd.ITreeResolver> = {
id: '@retrolab/application-extension:tree-resolver',
id: '@jupyter-notebook/application-extension:tree-resolver',
autoStart: true,
requires: [IRouter],
provides: JupyterFrontEnd.ITreeResolver,
@ -639,7 +643,7 @@ const tree: JupyterFrontEndPlugin<JupyterFrontEnd.ITreeResolver> = {
};
const treePathUpdater: JupyterFrontEndPlugin<ITreePathUpdater> = {
id: '@retrolab/application-extension:tree-updater',
id: '@jupyter-notebook/application-extension:tree-updater',
requires: [IRouter],
provides: ITreePathUpdater,
activate: (app: JupyterFrontEnd, router: IRouter) => {
@ -665,15 +669,15 @@ const treePathUpdater: JupyterFrontEndPlugin<ITreePathUpdater> = {
* Zen mode plugin
*/
const zen: JupyterFrontEndPlugin<void> = {
id: '@retrolab/application-extension:zen',
id: '@jupyter-notebook/application-extension:zen',
autoStart: true,
requires: [ITranslator],
optional: [ICommandPalette, IRetroShell, IMainMenu],
optional: [ICommandPalette, INotebookShell, IMainMenu],
activate: (
app: JupyterFrontEnd,
translator: ITranslator,
palette: ICommandPalette | null,
retroShell: IRetroShell | null,
retroShell: INotebookShell | null,
menu: IMainMenu | null
): void => {
const { commands } = app;

@ -1,4 +1,4 @@
@import url('~@retrolab/application/style/index.css');
@import url('~@jupyter-notebook/application/style/index.css');
@import url('~@lumino/widgets/style/index.css');
@import url('./base.css');

@ -1,4 +1,4 @@
import '@retrolab/application/style/index.js';
import '@jupyter-notebook/application/style/index.js';
import '@lumino/widgets/style/index.js';
import './base.css';

@ -1,7 +1,7 @@
{
"name": "@retrolab/application",
"name": "@jupyter-notebook/application",
"version": "0.4.0-alpha.1",
"description": "RetroLab - Application",
"description": "Jupyter Notebook - Application",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"

@ -16,12 +16,12 @@ import { IRenderMime } from '@jupyterlab/rendermime-interfaces';
import { Throttler } from '@lumino/polling';
import { IRetroShell, RetroShell } from './shell';
import { INotebookShell, RetroShell } from './shell';
/**
* App is the main application class. It is instantiated once and shared.
*/
export class RetroApp extends JupyterFrontEnd<IRetroShell> {
export class RetroApp extends JupyterFrontEnd<INotebookShell> {
/**
* Construct a new RetroApp object.
*
@ -152,7 +152,7 @@ export namespace RetroApp {
* The instantiation options for an App application.
*/
export interface IOptions
extends JupyterFrontEnd.IOptions<IRetroShell>,
extends JupyterFrontEnd.IOptions<INotebookShell>,
Partial<IInfo> {}
/**

@ -18,14 +18,14 @@ import { Panel, Widget, BoxLayout } from '@lumino/widgets';
/**
* The RetroLab application shell token.
*/
export const IRetroShell = new Token<IRetroShell>(
'@retrolab/application:IRetroShell'
export const INotebookShell = new Token<INotebookShell>(
'@jupyter-notebook/application:INotebookShell'
);
/**
* The RetroLab application shell interface.
*/
export interface IRetroShell extends RetroShell {}
export interface INotebookShell extends RetroShell {}
/**
* The default rank for ranked panels.

@ -1,7 +1,7 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
import { RetroShell, IRetroShell } from '@retrolab/application';
import { RetroShell, INotebookShell } from '@jupyter-notebook/application';
import { JupyterFrontEnd } from '@jupyterlab/application';
@ -10,7 +10,7 @@ import { toArray } from '@lumino/algorithm';
import { Widget } from '@lumino/widgets';
describe('Shell', () => {
let shell: IRetroShell;
let shell: INotebookShell;
beforeEach(() => {
shell = new RetroShell();

@ -1,7 +1,7 @@
{
"name": "@retrolab/console-extension",
"name": "@jupyter-notebook/console-extension",
"version": "0.4.0-alpha.1",
"description": "RetroLab - Console Extension",
"description": "Jupyter Notebook - Console Extension",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"

@ -17,7 +17,7 @@ import { find } from '@lumino/algorithm';
* A plugin to open consoles in a new tab
*/
const opener: JupyterFrontEndPlugin<void> = {
id: '@retrolab/console-extension:opener',
id: '@jupyter-notebook/console-extension:opener',
requires: [IRouter],
autoStart: true,
activate: (app: JupyterFrontEnd, router: IRouter) => {
@ -50,7 +50,7 @@ const opener: JupyterFrontEndPlugin<void> = {
* Open consoles in a new tab.
*/
const redirect: JupyterFrontEndPlugin<void> = {
id: '@retrolab/console-extension:redirect',
id: '@jupyter-notebook/console-extension:redirect',
requires: [IConsoleTracker],
autoStart: true,
activate: (app: JupyterFrontEnd, tracker: IConsoleTracker) => {

@ -1,7 +1,7 @@
{
"name": "@retrolab/docmanager-extension",
"name": "@jupyter-notebook/docmanager-extension",
"version": "0.4.0-alpha.1",
"description": "RetroLab - Document Manager Extension",
"description": "Jupyter Notebook - Document Manager Extension",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"

@ -20,7 +20,7 @@ import { Kernel } from '@jupyterlab/services';
* TODO: remove and use a custom doc manager?
*/
const opener: JupyterFrontEndPlugin<void> = {
id: '@retrolab/docmanager-extension:opener',
id: '@jupyter-notebook/docmanager-extension:opener',
requires: [IDocumentManager],
autoStart: true,
activate: (app: JupyterFrontEnd, docManager: IDocumentManager) => {

@ -1,7 +1,7 @@
{
"name": "@retrolab/documentsearch-extension",
"name": "@jupyter-notebook/documentsearch-extension",
"version": "0.4.0-alpha.1",
"description": "RetroLab - Document Search Extension",
"description": "Jupyter Notebook - Document Search Extension",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"
@ -39,10 +39,10 @@
"watch": "tsc -b --watch"
},
"dependencies": {
"@jupyterlab/application": "^4.0.0-alpha.5",
"@jupyterlab/documentsearch": "^4.0.0-alpha.5",
"@jupyterlab/application": "^4.0.0-alpha.4",
"@jupyterlab/documentsearch": "^4.0.0-alpha.4",
"@lumino/widgets": "^1.31.1",
"@retrolab/application": "^0.4.0-alpha.1"
"@jupyter-notebook/application": "^0.4.0-alpha.1"
},
"devDependencies": {
"rimraf": "~3.0.0",

@ -9,7 +9,7 @@ import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { Widget } from '@lumino/widgets';
import { IRetroShell } from '@retrolab/application';
import { INotebookShell } from '@jupyter-notebook/application';
const SEARCHABLE_CLASS = 'jp-mod-searchable';
@ -19,7 +19,7 @@ const SEARCHABLE_CLASS = 'jp-mod-searchable';
* https://github.com/jupyterlab/jupyterlab/issues/11754 for more context.
*/
const disableShortcut: JupyterFrontEndPlugin<void> = {
id: '@retrolab/documentsearch-extension:disableShortcut',
id: '@jupyter-notebook/documentsearch-extension:disableShortcut',
requires: [ISettingRegistry],
autoStart: true,
activate: async (app: JupyterFrontEnd, registry: ISettingRegistry) => {
@ -40,12 +40,12 @@ const disableShortcut: JupyterFrontEndPlugin<void> = {
* A plugin to add document search functionalities.
*/
const retroShellWidgetListener: JupyterFrontEndPlugin<void> = {
id: '@retrolab/documentsearch-extension:retroShellWidgetListener',
requires: [IRetroShell, ISearchProviderRegistry],
id: '@jupyter-notebook/documentsearch-extension:retroShellWidgetListener',
requires: [INotebookShell, ISearchProviderRegistry],
autoStart: true,
activate: (
app: JupyterFrontEnd,
retroShell: IRetroShell,
retroShell: INotebookShell,
registry: ISearchProviderRegistry
) => {
// If a given widget is searchable, apply the searchable class.

@ -1,7 +1,7 @@
{
"name": "@retrolab/help-extension",
"name": "@jupyter-notebook/help-extension",
"version": "0.4.0-alpha.1",
"description": "RetroLab - Help Extension",
"description": "Jupyter Notebook - Help Extension",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"
@ -43,7 +43,7 @@
"@jupyterlab/apputils": "^4.0.0-alpha.5",
"@jupyterlab/mainmenu": "^4.0.0-alpha.5",
"@jupyterlab/translation": "^4.0.0-alpha.4",
"@retrolab/ui-components": "^0.4.0-alpha.1"
"@jupyter-notebook/ui-components": "^0.4.0-alpha.1"
},
"devDependencies": {
"rimraf": "~3.0.0",

@ -12,7 +12,7 @@ import { IMainMenu } from '@jupyterlab/mainmenu';
import { ITranslator } from '@jupyterlab/translation';
import { retroIcon } from '@retrolab/ui-components';
import { retroIcon } from '@jupyter-notebook/ui-components';
import * as React from 'react';
@ -45,7 +45,7 @@ namespace CommandIDs {
* The help plugin.
*/
const plugin: JupyterFrontEndPlugin<void> = {
id: '@retrolab/help-extension:plugin',
id: '@jupyter-notebook/help-extension:plugin',
autoStart: true,
requires: [ITranslator],
optional: [IMainMenu],

@ -1,7 +1,7 @@
{
"name": "@retrolab/lab-extension",
"name": "@jupyter-notebook/lab-extension",
"version": "0.4.0-alpha.1",
"description": "RetroLab - Lab Extension",
"description": "Jupyter Notebook - Lab Extension",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"
@ -52,7 +52,7 @@
"@jupyterlab/translation": "^4.0.0-alpha.4",
"@lumino/commands": "^1.20.0",
"@lumino/disposable": "^1.10.1",
"@retrolab/application": "^0.4.0-alpha.1"
"@jupyter-notebook/application": "^0.4.0-alpha.1"
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.0-alpha.5",

@ -19,7 +19,7 @@ import { ITranslator } from '@jupyterlab/translation';
import { Menu, MenuBar } from '@lumino/widgets';
import { IRetroShell } from '@retrolab/application';
import { INotebookShell } from '@jupyter-notebook/application';
/**
* The command IDs used by the application plugin.
@ -57,14 +57,14 @@ interface ISwitcherChoice {
* A plugin to add custom toolbar items to the notebook page
*/
const launchButtons: JupyterFrontEndPlugin<void> = {
id: '@retrolab/lab-extension:interface-switcher',
id: '@jupyter-notebook/lab-extension:interface-switcher',
autoStart: true,
requires: [ITranslator],
optional: [
INotebookTracker,
ICommandPalette,
IMainMenu,
IRetroShell,
INotebookShell,
ILabShell,
IToolbarWidgetRegistry
],
@ -74,7 +74,7 @@ const launchButtons: JupyterFrontEndPlugin<void> = {
notebookTracker: INotebookTracker | null,
palette: ICommandPalette | null,
menu: IMainMenu | null,
retroShell: IRetroShell | null,
retroShell: INotebookShell | null,
labShell: ILabShell | null,
toolbarRegistry: IToolbarWidgetRegistry | null
) => {
@ -169,7 +169,7 @@ const launchButtons: JupyterFrontEndPlugin<void> = {
* A plugin to add a command to open the RetroLab Tree.
*/
const launchRetroTree: JupyterFrontEndPlugin<void> = {
id: '@retrolab/lab-extension:launch-retrotree',
id: '@jupyter-notebook/lab-extension:launch-retrotree',
autoStart: true,
requires: [ITranslator],
optional: [IMainMenu, ICommandPalette],

@ -1,7 +1,7 @@
{
"name": "@retrolab/notebook-extension",
"name": "@jupyter-notebook/notebook-extension",
"version": "0.4.0-alpha.1",
"description": "RetroLab - Notebook Extension",
"description": "Jupyter Notebook - Notebook Extension",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"
@ -48,7 +48,7 @@
"@jupyterlab/translation": "^4.0.0-alpha.4",
"@lumino/polling": "^1.10.0",
"@lumino/widgets": "^1.31.1",
"@retrolab/application": "^0.4.0-alpha.1"
"@jupyter-notebook/application": "^0.4.0-alpha.1"
},
"devDependencies": {
"rimraf": "~3.0.0",

@ -22,7 +22,7 @@ import { ISettingRegistry } from '@jupyterlab/settingregistry';
import { ITranslator } from '@jupyterlab/translation';
import { IRetroShell } from '@retrolab/application';
import { INotebookShell } from '@jupyter-notebook/application';
import { Poll } from '@lumino/polling';
@ -57,15 +57,15 @@ const SCROLLED_OUTPUTS_CLASS = 'jp-mod-outputsScrolled';
* A plugin for the checkpoint indicator
*/
const checkpoints: JupyterFrontEndPlugin<void> = {
id: '@retrolab/notebook-extension:checkpoints',
id: '@jupyter-notebook/notebook-extension:checkpoints',
autoStart: true,
requires: [IDocumentManager, ITranslator],
optional: [IRetroShell],
optional: [INotebookShell],
activate: (
app: JupyterFrontEnd,
docManager: IDocumentManager,
translator: ITranslator,
retroShell: IRetroShell | null
retroShell: INotebookShell | null
) => {
const { shell } = app;
const trans = translator.load('retrolab');
@ -115,10 +115,10 @@ const checkpoints: JupyterFrontEndPlugin<void> = {
* The kernel logo plugin.
*/
const kernelLogo: JupyterFrontEndPlugin<void> = {
id: '@retrolab/notebook-extension:kernel-logo',
id: '@jupyter-notebook/notebook-extension:kernel-logo',
autoStart: true,
requires: [IRetroShell],
activate: (app: JupyterFrontEnd, shell: IRetroShell) => {
requires: [INotebookShell],
activate: (app: JupyterFrontEnd, shell: INotebookShell) => {
const { serviceManager } = app;
let widget: Widget;
@ -167,12 +167,12 @@ const kernelLogo: JupyterFrontEndPlugin<void> = {
* A plugin to display the kernel status;
*/
const kernelStatus: JupyterFrontEndPlugin<void> = {
id: '@retrolab/notebook-extension:kernel-status',
id: '@jupyter-notebook/notebook-extension:kernel-status',
autoStart: true,
requires: [IRetroShell, ITranslator],
requires: [INotebookShell, ITranslator],
activate: (
app: JupyterFrontEnd,
shell: IRetroShell,
shell: INotebookShell,
translator: ITranslator
) => {
const trans = translator.load('retrolab');
@ -290,7 +290,7 @@ const runShortcut: JupyterFrontEndPlugin<void> = {
* https://github.com/jupyter/notebook/blob/a9a31c096eeffe1bff4e9164c6a0442e0e13cdb3/notebook/static/notebook/js/outputarea.js#L96-L120
*/
const scrollOutput: JupyterFrontEndPlugin<void> = {
id: '@retrolab/notebook-extension:scroll-output',
id: '@jupyter-notebook/notebook-extension:scroll-output',
autoStart: true,
requires: [INotebookTracker],
optional: [ISettingRegistry],

@ -1,7 +1,7 @@
{
"name": "@retrolab/terminal-extension",
"name": "@jupyter-notebook/terminal-extension",
"version": "0.4.0-alpha.1",
"description": "RetroLab - Terminal Extension",
"description": "Jupyter Notebook - Terminal Extension",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"

@ -17,7 +17,7 @@ import { find } from '@lumino/algorithm';
* A plugin to open terminals in a new tab
*/
const opener: JupyterFrontEndPlugin<void> = {
id: '@retrolab/terminal-extension:opener',
id: '@jupyter-notebook/terminal-extension:opener',
requires: [IRouter, ITerminalTracker],
autoStart: true,
activate: (
@ -56,7 +56,7 @@ const opener: JupyterFrontEndPlugin<void> = {
* Open terminals in a new tab.
*/
const redirect: JupyterFrontEndPlugin<void> = {
id: '@retrolab/terminal-extension:redirect',
id: '@jupyter-notebook/terminal-extension:redirect',
requires: [ITerminalTracker],
autoStart: true,
activate: (app: JupyterFrontEnd, tracker: ITerminalTracker) => {

@ -1,7 +1,7 @@
{
"name": "@retrolab/tree-extension",
"name": "@jupyter-notebook/tree-extension",
"version": "0.4.0-alpha.1",
"description": "RetroLab - Tree Extension",
"description": "Jupyter Notebook - Tree Extension",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"
@ -53,7 +53,7 @@
"@lumino/algorithm": "^1.9.1",
"@lumino/commands": "^1.20.0",
"@lumino/widgets": "^1.31.1",
"@retrolab/application": "^0.4.0-alpha.1"
"@jupyter-notebook/application": "^0.4.0-alpha.1"
},
"devDependencies": {
"rimraf": "~3.0.0",

@ -27,7 +27,7 @@ import { TabPanel } from '@lumino/widgets';
* Plugin to add extra buttons to the file browser to create new notebooks and files
*/
const newFiles: JupyterFrontEndPlugin<void> = {
id: '@retrolab/tree-extension:buttons',
id: '@jupyter-notebook/tree-extension:buttons',
requires: [IFileBrowserFactory, ITranslator],
autoStart: true,
activate: (
@ -68,7 +68,7 @@ const newFiles: JupyterFrontEndPlugin<void> = {
* Plugin to add a "New Console" button to the file browser toolbar.
*/
const newConsole: JupyterFrontEndPlugin<void> = {
id: '@retrolab/tree-extension:new-console',
id: '@jupyter-notebook/tree-extension:new-console',
requires: [IFileBrowserFactory, ITranslator],
autoStart: true,
activate: (
@ -102,7 +102,7 @@ const newConsole: JupyterFrontEndPlugin<void> = {
* Plugin to add a "New Terminal" button to the file browser toolbar.
*/
const newTerminal: JupyterFrontEndPlugin<void> = {
id: '@retrolab/tree-extension:new-terminal',
id: '@jupyter-notebook/tree-extension:new-terminal',
requires: [IFileBrowserFactory, ITranslator],
autoStart: true,
activate: (
@ -136,7 +136,7 @@ const newTerminal: JupyterFrontEndPlugin<void> = {
* A plugin to add the file browser widget to an ILabShell
*/
const browserWidget: JupyterFrontEndPlugin<void> = {
id: '@retrolab/tree-extension:widget',
id: '@jupyter-notebook/tree-extension:widget',
requires: [IFileBrowserFactory, ITranslator],
optional: [IRunningSessionManagers],
autoStart: true,

@ -1,7 +1,7 @@
{
"name": "@retrolab/ui-components",
"name": "@jupyter-notebook/ui-components",
"version": "0.4.0-alpha.1",
"description": "RetroLab - UI components",
"description": "Jupyter Notebook - UI components",
"homepage": "https://github.com/jupyterlab/retrolab",
"bugs": {
"url": "https://github.com/jupyterlab/retrolab/issues"

@ -18,5 +18,5 @@ def _jupyter_server_extension_points():
def _jupyter_labextension_paths():
return [{
'src': 'labextension',
'dest': '@retrolab/lab-extension'
'dest': '@jupyter-notebook/lab-extension'
}]

@ -13,7 +13,6 @@ from jupyterlab.commands import get_app_dir, get_user_settings_dir, get_workspac
from jupyterlab_server import LabServerApp
from jupyterlab_server.config import get_page_config, recursive_update, LabConfig
from jupyterlab_server.handlers import is_url, _camelCase
from nbclassic.shim import NBClassicConfigShimMixin
from tornado import web
from tornado.gen import maybe_future
from traitlets import Bool
@ -169,7 +168,7 @@ class RetroNotebookHandler(RetroHandler):
aliases = dict(base_aliases)
class RetroApp(NBClassicConfigShimMixin, LabServerApp):
class RetroApp(LabServerApp):
name = "retro"
app_name = "RetroLab"
description = "RetroLab - A JupyterLab Distribution with a retro look and feel"

@ -31,7 +31,6 @@ install_requires =
jupyterlab>=4.0.0a20,<5
jupyterlab_server~=2.3
jupyter_server~=1.4
nbclassic~=0.2
tornado>=6.1.0
[options.entry_points]

@ -10,7 +10,7 @@ HERE = Path(__file__).parent.resolve()
# The name of the project
NAME = "retrolab"
labext_name = "@retrolab/lab-extension"
labext_name = "@jupyter-notebook/lab-extension"
lab_extension_dest = HERE / NAME / "labextension"
main_bundle_dest = HERE / NAME / "static"
@ -18,13 +18,13 @@ main_bundle_dest = HERE / NAME / "static"
ensured_targets = [
str(lab_extension_dest / "static" / "style.js"),
str(main_bundle_dest / "bundle.js"),
str(HERE / NAME / "schemas/@retrolab/application-extension/package.json.orig"),
str(HERE / NAME / "schemas/@jupyter-notebook/application-extension/package.json.orig"),
]
data_files_spec = [
("share/jupyter/labextensions/%s" % labext_name, str(lab_extension_dest), "**"),
("share/jupyter/labextensions/%s" % labext_name, str(HERE), "install.json"),
("share/jupyter/lab/schemas", f"{NAME}/schemas", "@retrolab/**/*"),
("share/jupyter/lab/schemas", f"{NAME}/schemas", "@jupyter-notebook/**/*"),
(
"etc/jupyter/jupyter_server_config.d",
"jupyter-config/jupyter_server_config.d",

@ -1,5 +1,5 @@
{
"name": "@retrolab/ui-tests",
"name": "@jupyter-notebook/ui-tests",
"private": true,
"version": "0.1.0",
"author": "Project Jupyter",

Loading…
Cancel
Save