Tithon是一个开源项目,通过在主机上运行持久化的Jupyter内核守护进程,使内核及其输出独立于客户端存活1。用户可以关闭编辑器、断开连接或返回后,同一会话仍然保留并继续流式输出1。该项目以VSCode扩展和CLI工具的形式提供,目前处于Alpha测试阶段1。
项目的核心设计通过使内核以detached进程运行,确保守护进程可崩溃、重启或升级而内核继续运行1。输出通过SQLite WAL日志存储,并使用哈希匹配将输出绑定到单元格1,图像存储为实际文件而非base64编码1,支持断线重连后恢复完整历史1。
使用者可通过pip install tithon从PyPI安装,或在VSCode Marketplace中搜索"tithon"获取扩展1。项目支持Python 3.11及以上版本、Unix类系统环境1,采用MIT许可证1。
Tithon, an open-source project currently in alpha testing, enables persistent Jupyter kernel execution by running a long-lived kernel daemon on the host machine, decoupling the kernel and its outputs from the client lifecycle.1 Users can close their editor, disconnect, or step away, and the same session remains intact with continuous output streaming upon reconnection.1 The tool is available as a VSCode extension and command-line interface, distributed via pip install and the VSCode Marketplace.1
The project addresses kernel state persistence through several technical innovations.1 Kernel execution runs as a detached process using setsid, allowing the daemon itself to crash, restart, or be upgraded without interrupting the running kernel.1 Output is stored via SQLite write-ahead logging, with hash-based matching binding results to individual cells, while images are saved as actual files rather than base64-encoded data.1 Support is currently limited to Python 3.11 and later on Unix-like systems.1 The project is released under the MIT license.1
评论
还没有评论,欢迎留下第一条。