Skip to content

Commit

Permalink
Drop IpylabMainAreaWidget/MainArea
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Fleming committed Aug 22, 2024
1 parent 7d447d8 commit 3cff4b3
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 464 deletions.
3 changes: 0 additions & 3 deletions ipylab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"DisposableConnection",
"Panel",
"SplitPanel",
"MainArea",
"ViewStatus",
"Icon",
"Area",
"InsertMode",
Expand All @@ -27,7 +25,6 @@
from ipylab.hasapp import HasApp
from ipylab.hookspecs import hookimpl
from ipylab.jupyterfrontend import JupyterFrontEnd
from ipylab.main_area import MainArea, ViewStatus
from ipylab.shell import Area, InsertMode
from ipylab.widgets import Icon, Panel, SplitPanel

Expand Down
147 changes: 0 additions & 147 deletions ipylab/main_area.py

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ipylab",
"version": "2.0.0-b0",
"version": "2.0.0-b1",
"description": "Control JupyterLab from Python notebooks",
"keywords": [
"jupyter",
Expand Down
7 changes: 2 additions & 5 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,15 @@ import { ILauncher } from '@jupyterlab/launcher';
import { IRenderMimeRegistry } from '@jupyterlab/rendermime';
import { ITranslator } from '@jupyterlab/translation';
import { MODULE_NAME, MODULE_VERSION } from './version';
import { IMainAreaWidgetTracker } from './widgets/main_area';

const EXTENSION_ID = 'ipylab:plugin';

/**
* The default plugin.
*/
const extension: JupyterFrontEndPlugin<IMainAreaWidgetTracker> = {
const extension: JupyterFrontEndPlugin<void> = {
id: EXTENSION_ID,
autoStart: true,
provides: IMainAreaWidgetTracker,
requires: [IJupyterWidgetRegistry, IRenderMimeRegistry],
optional: [
ICommandPalette,
Expand Down Expand Up @@ -55,7 +53,7 @@ async function activate(
defaultBrowser: IDefaultFileBrowser | null,
launcher: ILauncher | null,
translator: ITranslator | null
): Promise<IMainAreaWidgetTracker> {
): Promise<void> {
const widgetExports = await import('./widget');
if (!widgetExports.JupyterFrontEndModel.app) {
// add globals
Expand All @@ -75,7 +73,6 @@ async function activate(
registry.registerWidget(widgetExports.IpylabModel.exports);
}
widgetExports.IpylabModel.pythonBackend.checkStart();
return widgetExports.MainAreaModel.tracker;
}

export default extension;
6 changes: 2 additions & 4 deletions src/widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
// Distributed under the terms of the Modified BSD License.

import { CommandRegistryModel } from './widgets/commands';
import { DisposableConnectionModel } from './widgets/disposable_connection';
import { JupyterFrontEndModel } from './widgets/frontend';
import { IconModel, IconView } from './widgets/icon';
import { IpylabModel } from './widgets/ipylab';
import { DisposableConnectionModel } from './widgets/disposable_connection';
import { MainAreaModel } from './widgets/main_area';
import { CommandPaletteModel, LauncherModel } from './widgets/palette';
import { PanelModel, PanelView } from './widgets/panel';
import { SplitPanelModel, SplitPanelView } from './widgets/split_panel';
Expand All @@ -15,13 +14,12 @@ import { TitleModel } from './widgets/title';
export {
CommandPaletteModel,
CommandRegistryModel,
DisposableConnectionModel,
IconModel,
IconView,
IpylabModel,
JupyterFrontEndModel,
LauncherModel,
DisposableConnectionModel,
MainAreaModel,
PanelModel,
PanelView,
SplitPanelModel,
Expand Down
Loading

0 comments on commit 3cff4b3

Please sign in to comment.