Skip to content

Commit

Permalink
Fix imports for HTMLManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Jul 16, 2022
1 parent 70b4289 commit 219d003
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/html-manager/src/htmlmanager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

import { createErrorWidgetModel, ErrorWidgetView } from '@jupyter-widgets/base';
import { ManagerBase } from '@jupyter-widgets/base-manager';
import { MessageLoop } from '@lumino/messaging';

Expand All @@ -11,7 +12,12 @@ import {
} from '@jupyterlab/rendermime';

import { WidgetRenderer, WIDGET_MIMETYPE } from './output_renderers';
import { WidgetModel, WidgetView, DOMWidgetView } from '@jupyter-widgets/base';

import type {
WidgetModel,
WidgetView,
DOMWidgetView,
} from '@jupyter-widgets/base';

export class HTMLManager extends ManagerBase {
constructor(options?: {
Expand Down Expand Up @@ -55,9 +61,9 @@ export class HTMLManager extends ManagerBase {
} catch (error) {
const msg = `Could not create a view for ${view}`;
console.error(msg);
const ModelCls = base.createErrorWidgetModel(error, msg);
const ModelCls = createErrorWidgetModel(error, msg);
const errorModel = new ModelCls();
v = new base.ErrorWidgetView({
v = new ErrorWidgetView({
model: errorModel,
});
v.render();
Expand Down

0 comments on commit 219d003

Please sign in to comment.