How to use the @jupyterlab/console.ForeignHandler function in @jupyterlab/console

To help you get started, we’ve selected a few @jupyterlab/console examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jupyterlab / jupyterlab / packages / console-extension / src / foreign.ts View on Github external
tracker.widgetAdded.connect((sender, widget) => {
    const console = widget.content.console;

    const handler = new ForeignHandler({
      session: console.session,
      parent: console
    });
    Private.foreignHandlerProperty.set(console, handler);
    console.disposed.connect(() => {
      handler.dispose();
    });
  });