@jupyterlite/terminal
Version:
A terminal for JupyterLite
24 lines (23 loc) • 593 B
JavaScript
import { BaseShell } from '@jupyterlite/cockle';
/**
* Shell class that uses web worker that plugs into a DriveFS via the service worker.
*/
export class Shell extends BaseShell {
/**
* Instantiate a new Shell
*
* @param options The instantiation options for a new shell
*/
constructor(options) {
super(options);
}
/**
* Load the web worker.
*/
initWorker(options) {
console.log('Terminal create webworker');
return new Worker(new URL('./worker.js', import.meta.url), {
type: 'module'
});
}
}