Skip to content

Instantly share code, notes, and snippets.

View xihn's full-sized avatar

miles xihn

  • 09:32 (UTC -07:00)
View GitHub Profile
@xihn
xihn / jupyter-ai-ollama.md
Last active April 23, 2026 20:05
Jupyter-ai with ollama

Installation / Usage

  1. Install Ollama to local user directory (ex: /global/home/users/mhyeh/ollama-0.6.0)
  2. Create a new conda enviorment. Do conda install jupyter-ai langchain-ollama
  3. Create the following bash script within the ollama directory. Make sure to modify OLLAMA_HOST to be any open port.
export basedir=/global/home/users/$USER/ollama-0.6.0/
export LD_LIBRARY_PATH=$basedir/usr/lib/:$LD_LIBRARY_PATH