Install poetry to manage dependencies (langchain, jupyter)
Requires pipx
$ poetry new langchain
Created package langchain in langchain
poetry add --group dev jupyter
$ poetry add langchain
This guide (and most of the other guides in the documentation) use Jupyter notebooks and assume the reader is as well. Jupyter notebooks are perfect for learning how to work with LLM systems because often times things can go wrong (unexpected output, API down, etc) and going through guides in an interactive environment is a great way to better understand them.
poetry run jupyter notebook
...