[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-682221-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-682221-en":130,"doc-similar-682221":148},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","best-practices-for-documenting-a-scientific-python-project-documentation-strategy","Best practices for documenting a scientific Python project - Documentation strategy","","Documentation plays a central role in scientific software development by guiding users on installation and use, and by helping new contributors onboard through clear contributing guidelines and API information. For INTERSECT SDK, Sphinx-based documentation is generated from docstrings and reStructuredText to produce HTML/PDF outputs. The documentation site is continuously built and deployed via GitLab runners into Docker containers running NGINX, improving both user and developer experience.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/best-practices-for-documenting-a-scientific-python-project-documentation-strategy/682221/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/best-practices-for-documenting-a-scientific-python-project-documentation-strategy/682221.png","ImageObject",300,407,{"name":42,"@type":43},"Stanford","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-10","2026-11-06",true,{"@type":52,"interactionType":53,"userInteractionCount":26},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"Why is documentation considered crucial in scientific software development?","Question",{"text":62,"@type":63},"Documentation explains the software’s purpose, provides installation and usage instructions, and supports developer onboarding through contributing guidelines and API information.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does the INTERSECT SDK approach generate documentation pages?",{"text":67,"@type":63},"It uses Sphinx with Python docstrings and reStructuredText files to automatically generate HTML and PDF documentation.",{"name":69,"@type":60,"acceptedAnswer":70},"How is the documentation site built and deployed continuously?",{"text":71,"@type":63},"GitLab runners automatically build and deploy the documentation by creating Docker containers that run NGINX servers to host the generated site.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},682221,1793963016,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":30,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":79,"read_time":111,"preview_page_count":22,"preview_urls":143},2336477552062,"https://ap-avatar.wpscdn.com/davatar_994ba38a5ba835b3df7d355c54d3ed8d","Best practices for documenting a scientific Python  \nproject  \nGavin M. Wiggins, Gregory Cage, Robert Smith, Seth Hitefield, Marshall McDonnell, Lance Drane, Jesse McGaha, Michael Brim, Mark Abraham, Richard Archibald  \nand Addi Malviya-Thakur  \nOak Ridge National Laboratory, Oak Ridge, TN USA  \nAbstract—Documentation is a crucial component of software development that helps users with installation and usage of the software. Documentation also helps onboard new developers to a software project with contributing guidelines and API information. Without the right tools, generating documentation can be laborious and distract from code development. The INTERSECT SDK project is an open federated hardware/software library to facilitate the development of autonomous laboratories. A documentation strategy using Sphinx has been utilized to help developers contribute to the source code and help users understand the INTERSECT SDK Python interface. Docstrings as well as reStructuredText files are used by Sphinx to generate HTML and PDF files, which can be hosted online as API documentation and user guides. The resulting documentation website is automatically built and deployed using GitLab runners to create Docker containers with NGINX servers. The approach discussed in this paper to automatically deploy documentation fora Python project can improve the user and developer experience for many scientific projects.  \nIndex Terms—python, documentation, style, formatting, linting  \nI. INTRODUCTION  \nDocumentation is a crucial component of software development and is considered good practice for scientific computing [1] . For users, it communicates the purpose of the software, as well as instructions on how to install and use it. Documentation can help developers onboard new developers by providing contributing guidelines and API information. However, generating and maintaining documentation can be a burdensome task for developers and distract from code development.  \nIn this paper, we develop a strategy for providing continuous deployment of documentation for the INTERSECT SDK Python library to help alleviate tedious documentation tasks. The INTERSECT SDK project [3], part of Oak Ridge National Laboratory’s Interconnected Science Initiative [2], is an open hardware/software library for autonomous laboratories. It utilizes a system of systems and microservices architecture [4], facilitating seamless collaboration and efficient data sharing among labs. Clear and easily accessed documentation of its  \nNotice: This manuscript has been authored by UT-Battelle, LLC under Contract No. DE-AC05-00OR22725 with the U.S. Department of Energy. The publisher, by accepting the article for publication, acknowledges that the U.S. Government retains a non-exclusive, paid up, irrevocable, worldwide license to publish or reproduce the published form of the manuscript, or allow others to do so, for U.S. Government purposes. The DOE will provide public access to these results in accordance with the DOE Public Access Plan ([http://energy.gov/downloads/doe-public-access-plan](http://energy.gov/downloads/doe-public-access-plan)).  \nPresented at USRSE2023, Chicago, IL, October 16-18, 2023 .  \nApplication Programming Interface (API) is a necessity for scientific users. We describe a set of coding practices which provide up-to-date documentation via continuous deployment to automatically build websites based on source code and docstrings. The goal of this approach is to allow developers to focus on code development instead of writing and maintaining documentation while adhering to best practices for Python programming.  \nII. CODING STYLE  \nStyle guides, linters, and formatters help developers maintain a coherent code base that can be easily documented. Also,“clean code” can be enforced via automatic application of these tools via continuous integration workflows. The sections below describe the tools utilized by INTERSECT SDK for code development and documentation.  \nA. G","cbCaime59CDU4Y9n","https://ap.wps.com/l/cbCaime59CDU4Y9n","pdf",82607,"English","# Abstract\n# Introduction\n# Coding Style\n## General style\n## Linting and formatting\n## Docstrings\n# Generating Documentation","[{\"question\":\"Why is documentation considered crucial in scientific software development?\",\"answer\":\"Documentation explains the software’s purpose, provides installation and usage instructions, and supports developer onboarding through contributing guidelines and API information.\"},{\"question\":\"How does the INTERSECT SDK approach generate documentation pages?\",\"answer\":\"It uses Sphinx with Python docstrings and reStructuredText files to automatically generate HTML and PDF documentation.\"},{\"question\":\"How is the documentation site built and deployed continuously?\",\"answer\":\"GitLab runners automatically build and deploy the documentation by creating Docker containers that run NGINX servers to host the generated site.\"}]","Best practices for documenting a scientific Python project - Documentation strategy | PDF",[144],{"page_no":22,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-06/51d195121611fc24087dd4ecdabeeac0.webp",983,1272,{"list":149,"token":11},[150,156,163,170,177,184,191,198,205,212],{"doc_id":151,"doc_title":152,"file_type":137,"home_preview_img_url":153,"slug":154,"view_count":111,"category_name":29,"create_tm":155},665431,"Kendall Kant - resume - Software Engineering","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229983853417/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=TAKQ0xn6df1xqo6XcDqiJ5agDP0%3D","kendall-kant-resume-software-engineering",1793303069,{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":161,"category_name":29,"create_tm":162},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=lZ3zitQj1BB%2FKbLA4U%2Fwctn4nd4%3D","xnx-gas-detector-calibration-2023",7896,1776136863,{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":29,"create_tm":169},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=OTubymKXobC%2Bq05dN%2Fjosg2O57Q%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6934,1776136851,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=E1JpQhNC6PMMTWAB0aU2h2TOWgk%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5867,1788211707,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":29,"create_tm":183},32070,"Blueprint Pengelolaan Sumber Daya Manusia Kesehatan (SDMK) Tahun 2025–2029","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229758685683/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=7Upi5VR%2FDIaMkeqo3Rh8TeDtT8k%3D","healthcare-human-resources-management-blueprint-sdmk-20252029",1292,1780779716,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":29,"create_tm":190},148514,"Developmental Biology - Twelfth Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229868853261/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=rZxXmi8C%2BJjeVjL4NW6aoXtpjw8%3D","developmental-biology-twelfth-edition",1250,1787780705,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":29,"create_tm":197},121,"Letter of Intent Sample for School","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693418846/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=5hSeP8QyBZIYG6DMaci2JcjfN7Q%3D","letter-of-intent-sample-for-school",1059,1776135210,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":29,"create_tm":204},129209,"Laboratory Manual for Principles of General Chemistry - J. A. Beran - 11th Edition","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840760175/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=KWbVwNxkrHWBWfM9sokv8%2B%2FguuU%3D","laboratory-manual-for-principles-of-general-chemistry-j-a-beran-11th-edition",887,1786011673,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},117724,"The Trading Edge - Vivek Bajaj","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834707110/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=9kPUX5kjq3GnRcn%2B1ZZ4QeBlcX8%3D","the-trading-edge-vivek-bajaj",874,1785678693,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":29,"create_tm":218},47709,"Stress, Appraisal, and Coping","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229799364477/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112059&Signature=u3hDSlDSh%2BYGm3SQJRQryabDjA0%3D","stress-appraisal-and-coping",819,1783565401]