Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
habrok:examples:ollama [2025/09/04 10:57] camarocicohabrok:examples:ollama [2025/09/04 11:47] (current) camarocico
Line 1: Line 1:
-{{indexmenu_n>4}} 
 ====== Ollama on Habrok ====== ====== Ollama on Habrok ======
  
Line 31: Line 30:
 ===== Simple usage example ===== ===== Simple usage example =====
  
-To use Ollama in the Jupyter app, here’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 77: Line 76:
 ollama.delete("gemma3:12b") ollama.delete("gemma3:12b")
 </code> </code>
 +
 +You can find more info on how to use the Ollama Python library on their [[https://github.com/ollama/ollama-python|GitHub page]].
 +