How to use @jupyterlab/extension-builder - 10 common examples

To help you get started, we’ve selected a few @jupyterlab/extension-builder 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 jupyter-widgets / ipywidgets / jupyterlab_widgets / scripts / buildExtension.js View on Github external
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

var path = require('path');

var buildExtension = require('@jupyterlab/extension-builder').buildExtension;

buildExtension({
  name: 'jupyterlab_widgets',
  entry: './lib/plugin',
  outputDir : './jupyterlab_widgets/static'
});
github jupyter-attic / jupyterlab_geojson / scripts / build_extension.js View on Github external
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

var buildExtension = require('@jupyterlab/extension-builder').buildExtension;

buildExtension({
        name: 'jupyterlab_geojson',
        entry: './lib/plugin.js',
        outputDir: './jupyterlab_geojson/static'
});
github hahnlee / ipytracer / js / webpack.config.js View on Github external
// Copyright (c) Han Lee.
// Copyright (c) IPython Development Team.
// Distributed under the terms of the Modified BSD License.

var version = require('./package.json').version;

var loaders = [
    { test: /\.css$/, loader: "style-loader!css-loader" },
    { test: /\.json$/, loader: 'json-loader' },
    { test: /\.js$/, loader: 'babel-loader?presets[]=es2015' }
];

var buildExtension = require('@jupyterlab/extension-builder/lib/builder').buildExtension;

buildExtension({
    name: 'ipytracer',
    entry: './src/labplugin',
    outputDir: '../ipytracer/staticlab',
    useDefaultLoaders: false,
    extractCSS: false,
    config: {
        module: {
            loaders: loaders
        }
    }
});

module.exports = [
    {// Notebook extension
github jupyterlab / jupyterlab / jupyterlab / loader.js View on Github external
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.

var ModuleLoader = require('@jupyterlab/extension-builder/lib/loader').ModuleLoader;

var loader = new ModuleLoader();

module.exports = {
  define: loader.define.bind(loader),
  require: loader.require.bind(loader),
  requireBundle: loader.ensureBundle.bind(loader)
}
github jupyter-attic / jupyterlab_json / labextension / build_extension.js View on Github external
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
var path = require('path');

buildExtension({
  name: 'jupyterlab_json',
  entry: path.join(__dirname, 'src', 'plugin.js'),
  outputDir: path.join(
    __dirname,
    '..',
    'jupyterlab_json',
    'static'
  ),
  useDefaultLoaders: false,
  config: {
    module: {
      loaders: [
        { test: /\.html$/, loader: 'file-loader' },
github altair-viz / jupyter_vega / labextension / build_extension.js View on Github external
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
var path = require('path');

buildExtension({
  name: 'jupyterlab_vega',
  entry: path.join(__dirname, 'src', 'plugin.js'),
  outputDir: path.join(
    __dirname,
    '..',
    'jupyterlab_vega',
    'static'
  ),
  useDefaultLoaders: false,
  config: {
    module: {
      loaders: [
        { test: /\.html$/, loader: 'file-loader' },
github gnestor / jupyterlab_plotly / labextension / build_extension.js View on Github external
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
var path = require('path');

buildExtension({
  name: 'jupyterlab_plotly',
  entry: path.join(__dirname, 'src', 'plugin.js'),
  outputDir: path.join(__dirname, '..', 'jupyterlab_plotly', 'static'),
  useDefaultLoaders: false,
  config: {
    module: {
      loaders: [
        { test: /\.html$/, loader: 'file-loader' },
        { test: /\.(jpg|png|gif)$/, loader: 'file-loader' },
        {
          test: /\.woff2(\?v=\d+\.\d+\.\d+)?$/,
          loader: 'url-loader?limit=10000&mimetype=application/font-woff'
        },
github jupyter-attic / jupyterlab_geojson / labextension / build_extension.js View on Github external
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
var path = require('path');

buildExtension({
  name: 'jupyterlab_geojson',
  entry: path.join(__dirname, 'src', 'plugin.js'),
  outputDir: path.join(
    __dirname,
    '..',
    'jupyterlab_geojson',
    'static'
  ),
  useDefaultLoaders: false,
  config: {
    module: {
      loaders: [
        { test: /\.html$/, loader: 'file-loader' },
github jupyterlab / extension-cookiecutter-js / {{cookiecutter.extension_name}} / build_extension.js View on Github external
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;

buildExtension({
        name: '{{ cookiecutter.extension_name }}',
        entry: './lib/plugin.js',
        outputDir: './{{ cookiecutter.extension_name }}/static'
});
github gnestor / jupyterlab_table / labextension / build_extension.js View on Github external
var buildExtension = require('@jupyterlab/extension-builder').buildExtension;
var path = require('path');

buildExtension({
  name: 'jupyterlab_table',
  entry: path.join(__dirname, 'src', 'plugin.js'),
  outputDir: path.join(
    __dirname,
    '..',
    'jupyterlab_table',
    'static'
  ),
  useDefaultLoaders: false,
  config: {
    module: {
      loaders: [
        { test: /\.html$/, loader: 'file-loader' },

@jupyterlab/extension-builder

Tools for building JupyterLab extensions

BSD-3-Clause
Latest version published 8 years ago

Package Health Score

67 / 100
Full package analysis

Similar packages