EZInput:用于科学计算中轻松生成用户界面的跨环境Python库
EZInput: A Cross-Environment Python Library for Easy UI Generation in Scientific Computing
AI总结:
研究人员应用计算算法遇障碍,EZInput库能让算法开发者自动生成图形用户界面。它采用声明式规范系统,支持跨环境运行,有参数持久化功能,支持多样输入类型且含内置验证,助力科学计算,提升可重复性并减少用户摩擦。
摘要:
研究人员在应用计算算法时面临持续障碍,参数配置需编程技能,不同环境接口各异且会话间设置难持久。这种碎片化导致重复输入、减慢迭代探索并破坏可重复性。我们提出EZInput,一个跨运行时环境的Python库,能让算法开发者自动生成图形用户界面,使计算工具对无编程专业知识的终端用户可用。EZInput采用声明式规范系统,开发者只需定义一次输入要求和验证约束,库就能处理环境检测、界面渲染、参数验证和跨Jupyter笔记本、Google Colab及终端环境的会话持久化。这种“一次编写,随处运行”架构使研究人员能在笔记本中进行原型设计,并在远程系统上部署相同参数配置进行批量执行,无需代码更改或手动转录。受ImageJ/FIJI启发并适用于Python工作流程的参数持久化,通过轻量级YAML文件保存和恢复用户配置,消除冗余输入并生成可增强可重复性的可共享记录。EZInput支持科学计算所需的多种输入类型,还包括内置验证以确保数据完整性和清晰反馈以减少用户摩擦。
英文摘要:
Researchers face a persistent barrier when applying computational algorithms with parameter configuration typically demanding programming skills, interfaces differing across environments, and settings rarely persisting between sessions. This fragmentation forces repetitive input, slows iterative exploration, and undermines reproducibility because parameter choices are difficult to record, share, and reuse. We present EZInput, a cross-runtime environment Python library enabling algorithm developers to automatically generate graphical user interfaces that make their computational tools accessible to end-users without programming expertise. EZInput employs a declarative specification system where developers define input requirements and validation constraints once; the library then handles environment detection, interface rendering, parameter validation, and session persistence across Jupyter notebooks, Google Colab, and terminal environments. This "write once, run anywhere" architecture enables researchers to prototype in notebooks and deploy identical parameter configurations for batch execution on remote systems without code changes or manual transcription. Parameter persistence, inspired by ImageJ/FIJI and adapted to Python workflows, saves and restores user configurations via lightweight YAML files, eliminating redundant input and producing shareable records that enhance reproducibility. EZInput supports diverse input types essential for scientific computing and it also includes built-in validation that ensures data integrity and clear feedback that reduces user friction.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。