Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
habrok:examples:ollama [2025/09/04 10:57] – camarocico | habrok:examples:ollama [2025/09/04 11:47] (current) – camarocico | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{indexmenu_n> | ||
====== Ollama on Habrok ====== | ====== Ollama on Habrok ====== | ||
Line 31: | Line 30: | ||
===== Simple usage example ===== | ===== Simple usage example ===== | ||
- | To use Ollama in the Jupyter app, here& | + | 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 77: | Line 76: | ||
ollama.delete(" | ollama.delete(" | ||
</ | </ | ||
+ | |||
+ | You can find more info on how to use the Ollama Python library on their [[https:// | ||
+ |