-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added troubleshooting section to the docs page (#583)
Co-authored-by: Andrew Malone <[email protected]> Co-authored-by: Samuel Colvin <[email protected]> Co-authored-by: hyperlint-ai[bot] <154288675+hyperlint-ai[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4537c07
commit b8648e8
Showing
3 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Troubleshooting | ||
|
||
Common/known issues are shown below with associated solutions. | ||
|
||
## Jupyter Notebooks | ||
|
||
If you're running `pydantic-ai` in a jupyter notebook, you might consider using [`nest-asyncio`](https://pypi.org/project/nest-asyncio/) | ||
to manage conflicts between event loops that occur between Jupyter's event loops and `pydantic-ai`'s. | ||
|
||
Before you execute any agent runs, do the following: | ||
|
||
```python {test="skip" lint="skip"} | ||
import nest_asyncio | ||
|
||
nest_asyncio.apply() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters