IPython/Jupyter notebook loader for webpack.
ipynb-loader requires jupyter to be installed (jupyter installation page).
Make sure that jupyter
is available in your $PATH
.
Like any other webpack loader:
// webpack.config.js
module.exports = {
module: {
loaders: [
{
test: /\.ipynb$/,
exclude: /node_modules/,
loader: 'ipynb?cellsOnly=true'
}
]
}
}
to
: export format
custom
, html
, latex
, markdown
, notebook
, pdf
, python
, rst
, script
, slides
html
cellsOnly
: only return .cell
elements instead of returning the entire document (<html></html>
)
true
, false
false