# NotebookLoader

> **Class** in `langchain_community`

📖 [View in docs](https://reference.langchain.com/python/langchain-community/document_loaders/notebook/NotebookLoader)

Load `Jupyter notebook` (.ipynb) files.

## Signature

```python
NotebookLoader(
    self,
    path: Union[str, Path],
    include_outputs: bool = False,
    max_output_length: int = 10,
    remove_newline: bool = False,
    traceback: bool = False,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `path` | `Union[str, Path]` | Yes | The path to load the notebook from. |
| `include_outputs` | `bool` | No | Whether to include the outputs of the cell. Defaults to False. (default: `False`) |
| `max_output_length` | `int` | No | Maximum length of the output to be displayed. Defaults to 10. (default: `10`) |
| `remove_newline` | `bool` | No | Whether to remove newlines from the notebook. Defaults to False. (default: `False`) |
| `traceback` | `bool` | No | Whether to return a traceback of the error. Defaults to False. (default: `False`) |

## Extends

- `BaseLoader`

## Constructors

```python
__init__(
    self,
    path: Union[str, Path],
    include_outputs: bool = False,
    max_output_length: int = 10,
    remove_newline: bool = False,
    traceback: bool = False,
)
```

| Name | Type |
|------|------|
| `path` | `Union[str, Path]` |
| `include_outputs` | `bool` |
| `max_output_length` | `int` |
| `remove_newline` | `bool` |
| `traceback` | `bool` |


## Properties

- `file_path`
- `include_outputs`
- `max_output_length`
- `remove_newline`
- `traceback`

## Methods

- [`load()`](https://reference.langchain.com/python/langchain-community/document_loaders/notebook/NotebookLoader/load)

---

[View source on GitHub](https://github.com/langchain-ai/langchain-community/blob/a6a6079511ac8a5c1293337f88096b8641562e77/libs/community/langchain_community/document_loaders/notebook.py#L77)