docs: notebook loader: change .html to .ipynb (#22407)

Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
Klaudia Lemiec 2024-06-03 16:26:28 +02:00 committed by GitHub
parent a7ae16f912
commit dac355fc62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@
"\n", "\n",
">[Jupyter Notebook](https://en.wikipedia.org/wiki/Project_Jupyter#Applications) (formerly `IPython Notebook`) is a web-based interactive computational environment for creating notebook documents.\n", ">[Jupyter Notebook](https://en.wikipedia.org/wiki/Project_Jupyter#Applications) (formerly `IPython Notebook`) is a web-based interactive computational environment for creating notebook documents.\n",
"\n", "\n",
"This notebook covers how to load data from a `Jupyter notebook (.html)` into a format suitable by LangChain." "This notebook covers how to load data from a `Jupyter notebook (.ipynb)` into a format suitable by LangChain."
] ]
}, },
{ {
@ -31,7 +31,7 @@
"outputs": [], "outputs": [],
"source": [ "source": [
"loader = NotebookLoader(\n", "loader = NotebookLoader(\n",
" \"example_data/notebook.html\",\n", " \"example_data/notebook.ipynb\",\n",
" include_outputs=True,\n", " include_outputs=True,\n",
" max_output_length=20,\n", " max_output_length=20,\n",
" remove_newline=True,\n", " remove_newline=True,\n",
@ -42,7 +42,7 @@
"cell_type": "markdown", "cell_type": "markdown",
"metadata": {}, "metadata": {},
"source": [ "source": [
"`NotebookLoader.load()` loads the `.html` notebook file into a `Document` object.\n", "`NotebookLoader.load()` loads the `.ipynb` notebook file into a `Document` object.\n",
"\n", "\n",
"**Parameters**:\n", "**Parameters**:\n",
"\n", "\n",