@ponym Here is working example of format/lint/testing python-in-markdown
https://github.com/matthewdeanmartin/markpickle/tree/main/sample_module
Here is the incomplete custom import loader
https://github.com/matthewdeanmartin/markpickle/blob/main/markmodule/import_string.py