Initiative overview
CodeBridge supports StatCan’s shift from proprietary applications to open-source software alternatives and aligns with modern data practices for using open-source tools. CodeBridge helps in the skills development of analysts and developers as it provides explanatory text for code and explains legacy “black box” code, facilitating the transition of statistical code to Python or R.
CodeBridge provides fast, accurate conversions with clear explanations that help users learn as they go. It allows users to customise prompts, choose their preferred open-source packages (R or Python), and keep control of their code. It provides line-by-line explanations, so users understand what’s happening, like having a mentor built into their workflow. Code is processed in a protected-data environment, so data stays secure. The tool is offered to users in both English and French.
Two education surveys focused on secondary and post-secondary education finance underwent significant modernisation efforts since 2022. Both surveys were successfully transitioned to open-source platforms and have since completed multiple cycles using these new tools. Production in open-source tools has been completed for the 2023, 2024, and 2025 cycles. Since the initial migration process, additional tools were built in Python for digital collection tools, including automated mail-out processes and materials.
The Blaise application, previously used for hard-copy questionnaires, became unavailable. Rather than allowing this disruption to impede progress, the teams proactively transitioned to R and Python for questionnaire development and data processing. Through the adoption of these flexible and powerful tools, the digital questionnaire processing environment was recreated using R, with early migration efforts supported via StatCan GitLab.
Results, outcomes and impacts
The migration effort began roughly three years ago on Azure Virtual Desktop (AVD) due to the absence of a designated Zone environment. This allowed the teams to establish processes and workflows in a cloud-based setting. Subsequently, work is transitioning to the Zone environment for enhanced stability and integration. One cycle has been completed using Python, which is used for data cleaning and verification. This open-source tool has been chosen to align with production partners in the Centre for Social Data Processing (CSDP), where migration is also underway.




























