mirror of
https://github.com/run-llama/llama-hub.git
synced 2025-08-13 11:11:48 +00:00
IPynb Loader
This loader extracts text from .ipynb
(jupyter notebook) files.
Usage
To use this loader, you need to pass in a Path
to a local file.
from pathlib import Path
from llama_index import download_loader
IPYNBReader = download_loader("IPYNBReader")
# specify concatenate to determine whether to concat cells into one Document
loader = IPYNBReader(concatenate=True)
documents = loader.load_data(file=Path('./image.png'))