Eel is a Python library for creating simple HTML/JS GUI applications with easy Python-JS interop. Current version is 0.18.2, requiring Python >=3.7. It uses Bottle as a web server and can launch a Chrome app mode window. Releases are occasional, with maintenance focused on compatibility and bug fixes.
pip install eelVerified import paths — ran on the pinned version, not inferred.
Minimal example: initialize Eel with a 'web' folder, expose a Python function, and start the app.
Install Google Chrome or set `mode='chrome'` explicitly. For headless, use `mode=None`.
Use async functions in JavaScript: `result = await eel.my_python_function()()`
Use absolute paths or set the working directory before calling `eel.init()`.
Update to v0.18.2 or ensure `typing_extensions` is installed. For custom resource loading, use `importlib.resources` instead of `pkg_resources`.
Run `pip install typing_extensions` or upgrade Eel: `pip install --upgrade eel`
Rename your local file to avoid conflict, or use `import eel` and then `eel.init()`.
Install Chrome or set `mode='edge'` for Microsoft Edge, or `mode=None` to just start the server without opening a browser.
Ensure you call eel functions only after the page is loaded and eel.js is included. Use `window.onload` or `document.addEventListener('DOMContentLoaded', ...)`.Use absolute path: `eel.init(os.path.join(os.path.dirname(__file__), 'web'))`