Abstract
Jupyter Notebooks are the primary tool for interactive data science but often fail to adhere to FAIR (Findable, Accessible, Interoperable, and Reusable) principles, leading to challenges in reproducibility and code reuse. This paper presents a novel toolset that integrates FAIRification directly into the notebook environment using Python decorators and nanopublications. By automating the generation of semantic metadata and providing a search-and-inject interface, the system allows researchers to publish and discover granular workflow steps without disrupting their iterative coding process. Evaluation through a user study (n=15) demonstrates high usability (SUS score 78.75) and significant perceived improvements in the findability and reusability of research code.
Introduction
While the FAIR principles are well-established for datasets, applying them to the computational workflows that generate those datasets remains a significant hurdle. Jupyter Notebooks are often monolithic and difficult to decompose for reuse, leading researchers to rely on manual copy-pasting that obscures provenance. Existing workflow management systems often require a departure from the flexible "notebook way" of working. To address this, we developed a toolset designed to make FAIRification an integrated part of the data science flow rather than an obstacle.
The FAIRWorkflows Ecosystem
The proposed solution consists of three main components: the fairworkflows library, the nanopub library, and a JupyterLab extension.
Automated Metadata Generation
The core innovation lies in the use of Python decorators to semantically annotate code. By marking a function with @is_fairstep, the fairworkflows library automatically extracts metadata from the function signature and docstrings to generate Resource Description Framework (RDF) triples. This process captures both prospective provenance (the intended plan) and retrospective provenance (the actual execution details).
Nanopublication and Discovery
Once annotated, workflow steps are published as "nanopublications"—the smallest units of publishable information—to a decentralized network. A dedicated JupyterLab sidebar allows users to search this network for existing steps and inject the corresponding code directly into their active notebook. This promotes a "mix-and-match" approach to workflow construction using verified, granular components.
Evaluation and Results
The system was evaluated through a user study involving 15 participants tasked with completing image-processing workflows. The toolset achieved a System Usability Scale (SUS) score of 78.75, placing it in the "good to excellent" range.
Participants successfully composed complex workflows, with 11 out of 15 creating and publishing their own custom steps. Qualitative feedback indicated that the "Search and Inject" feature was the most valued, significantly reducing the effort required to find and reuse external code. Participants rated the system's impact on "Findability" and "Reusability" at 4.5 and 4.7 out of 5, respectively.
Discussion and Future Work
While the toolset successfully lowers the barrier to FAIR workflow composition, several challenges remain. The ability to execute arbitrary code fetched from the web introduces security risks that require sandboxing or verification mechanisms. Furthermore, full environment reproducibility (e.g., specific library versions) is not yet fully integrated, a gap that could be addressed through containerization technologies like Docker. Future work will also explore "Manual Task Assistants" to incorporate human-in-the-loop steps into the semantic framework.
Summary updated