Skip to main content

A minimal notepad with Ollama integration

Project description

Tiny Notepad with Ollama

A sleek local notepad app powered by Ollama to generate text using LLMs. Write notes, chat with models, and tweak generation parameters — all in a clean Tkinter-based GUI.

Features

  • Save timestamped notes
  • Load & view past notes from sidebar
  • Query any installed Ollama model
  • Adjustable generation settings:
    • temperature
    • top_p
    • top_k
    • repeat_penalty
    • presence_penalty
    • frequency_penalty
    • stop sequences

What is Ollama?

Ollama lets you run open-source large language models locally, including LLaMA, Mistral, Gemma, and more. It provides a lightweight API on localhost:11434.

Install Ollama from: https://ollama.com

Once installed, load a model like this:

ollama run llama3.2

How to Run This App

  1. Install Python dependencies (if not already):

    pip install requests
    
  2. Start the app:

    python tiny_notepad.py
    
  3. If Ollama isn't running, the app will try to start ollama serve for you.


Model Parameters Explained

Parameter Purpose Default
temperature Controls randomness (0 = deterministic, 2 = wild) 0.7
top_p Limits tokens to a cumulative probability (nucleus) 0.9
top_k Limits to top-k likely tokens 40
repeat_penalty Penalizes repeated phrases 1.0
presence_penalty Encourages new topics 0.0
frequency_penalty Penalizes high-frequency terms 0.0
stop Comma-separated strings to halt generation (custom)

Notes Location

All saved notes are stored in the notes/ folder and autosaved as notes_YYYY-MM-DD_HH-MM-SS.txt.


Tip

You can install additional models via:

ollama pull mistral
ollama pull llama3

Then restart the app and pick them from the dropdown.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tiny_notepad-0.1.1.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiny_notepad-0.1.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file tiny_notepad-0.1.1.tar.gz.

File metadata

  • Download URL: tiny_notepad-0.1.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tiny_notepad-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a43e376dd75d142b09df20052bea3c25270807090f4671f09d4884393b88264d
MD5 285e527955fdd3d363e7ebaa4835cd86
BLAKE2b-256 d7581f0b5cf7c2fb372903965aaf3dae238bdd34d3d322ebf6efa22ed42b918e

See more details on using hashes here.

File details

Details for the file tiny_notepad-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tiny_notepad-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tiny_notepad-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cac93caad8023dc287dc46a815a9461de431f2de731454de6547709d3f1933be
MD5 0dc1aaea3bb959fd50fdc5ab2ac2ffb7
BLAKE2b-256 15f93973af80aab132096da8e0f1cf7599a5c941b4683f93cf51ed2f50a6e143

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page