Skip to content
This repository was archived by the owner on Feb 11, 2026. It is now read-only.
This repository was archived by the owner on Feb 11, 2026. It is now read-only.

Code Checking Utility #622

@bpmweel

Description

@bpmweel

Salutation!

While working on the deep-learning-intro we noticed that we needed to check whether the code we have in our lesson actually works. For this I made a small utility that we use in a github action to check this, you can see it here: https://github.com/bpmweel/cce.

Given a markdown file with the carpentries template the tool

  • It extracts any code block marked with {:.language-python}
  • Puts it in a python file
  • Executes the python file
  • Captures any exceptions and outputs these to the stdout

You can see how it works in our deep-learning-intro repository here: https://github.com/carpentries-incubator/deep-learning-intro/actions/workflows/inline-code.yml

I think this would be a nice addition for the lesson template. Would you be interested in using this?
If so it would be really good to find some people who are willing to help develop the tool so it can be used with more
languages and perhaps also check whether the output makes sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions