def METHOD_NAME(
    self, data, source_path=None, is_two_file=True, post=None, lang=None
):
    """Compile notebook into HTML strings, with shortcode support."""
    if not is_two_file:
        _, data = self.split_metadata(data, post, lang)
    new_data, shortcodes = sc.extract_shortcodes(data)
    return self.site.apply_shortcodes_uuid(
        new_data, shortcodes, filename=source_path, extra_context={"post": post}
    )