Debian Codegraph @

js/extension.ts

raw
1 // Copyright (c) Jupyter Development Team.
2 // Distributed under the terms of the Modified BSD License.
3
4 // Entry point for the notebook bundle containing custom model definitions.
5 //
6 // Setup notebook base URL
7 //
8 // Some static assets may be required by the custom widget javascript. The base
9 // url for the notebook is not known at build time and is therefore computed
10 // dynamically.
11 // eslint-disable-next-line @typescript-eslint/no-explicit-any
12 (window as any).__webpack_public_path__ =
13 // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
14 document.querySelector('body')!.getAttribute('data-base-url') +
15 'nbextensions/ipydatagrid';
16
17 export * from './index';