Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
habrok:examples:ollama [2025/09/04 11:12] – [Simple usage example] camarocico | habrok:examples:ollama [2025/09/04 11:47] (current) – camarocico | ||
---|---|---|---|
Line 30: | Line 30: | ||
===== Simple usage example ===== | ===== Simple usage example ===== | ||
- | To use Ollama in the Jupyter app, here is a small example which first imports the necessary packages: | + | To use Ollama in the Jupyter app, you need first to open a new notebook in the Jupyter app, and choose the **Ollama** Jupyter kernel built when setting up the virtual environment. Here is a small example which first imports the necessary packages: |
<code python> | <code python> | ||
import os | import os | ||
Line 76: | Line 76: | ||
ollama.delete(" | ollama.delete(" | ||
</ | </ | ||
+ | |||
+ | You can find more info on how to use the Ollama Python library on their [[https:// | ||
+ |