<!--
title: Notebook dependency install
domain: ai-agents
topic: AI
language: Other
source: langchain-ai/langchain
updated: 2024-09-10
url: https://awesomereviewers.com/reviewers/langchain-notebook-dependency-install/
-->

When authoring AI/LLM tutorials in Jupyter notebooks, ensure dependency installation is done with correct notebook syntax and that nearby explanatory text is unambiguous.

- Use Jupyter magics for installs inside cells (not commented shell commands or bare `pip` lines).
- Keep documentation wording precise when describing session/message history behavior.

Example:
```python
# In a notebook cell (ipynb), use the magic:
%pip install langchain_community

# And keep narrative wording clear when describing state:
# "...wraps the model and adds to this message history..."
```
