Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

ipynb-loader

0.0.2 • Public • Published

ipynb-loader

IPython/Jupyter notebook loader for webpack.

Requirements

ipynb-loader requires jupyter to be installed (jupyter installation page).

Make sure that jupyter is available in your $PATH.

Usage

Like any other webpack loader:

// webpack.config.js
module.exports = {
  module: {
    loaders: [
      {
        test: /\.ipynb$/,
        exclude: /node_modules/,
        loader: 'ipynb?cellsOnly=true'
      }
    ]
  }
}
 

Query options

  • to: export format
    • options: custom, html, latex, markdown, notebook, pdf, python, rst, script, slides
    • default: html
  • cellsOnly: only return .cell elements instead of returning the entire document (<html></html>)
    • options: true, false
    • default: false

install

npm i ipynb-loader

Downloadsweekly downloads

14

version

0.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability