Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/n6g7/ipynb-loader

ipython/jupyter notebook files loader for webpack
https://github.com/n6g7/ipynb-loader

ipython jupyter loader webpack webpack-loader

Last synced: 25 days ago
JSON representation

ipython/jupyter notebook files loader for webpack

Awesome Lists containing this project

README

        

# ipynb-loader

IPython/Jupyter notebook loader for [webpack](https://webpack.github.io/).

## Requirements

ipynb-loader requires [jupyter](http://jupyter.org/) to be installed ([jupyter installation page](http://jupyter.org/install.html)).

Make sure that `jupyter` is available in your `$PATH`.

## Usage

Like any other webpack loader:

```js
// 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 (``)
- options: `true`, `false`
- default: `false`