ReadonlycellThe supported cell types.
ReadonlyfileExtension of the virtual document (some servers check extensions of files), e.g. 'py' or 'R'.
ReadonlylanguageThe foreign language.
ReadonlystandaloneDoes the extractor produce code which should be appended to the previously established virtual document (False) of the same language, or does it produce standalone snippets which require separate connections (True)?
Split the code into the host and foreign code (if any foreign code was detected)
Foreign code extractor makes it possible to analyze code of language X embedded in code (or notebook) of language Y.
The typical examples are:
while in the data analysis realm, examples include:
This extension does not aim to provide comprehensive abilities for foreign code extraction, but it does intend to provide stable interface for other extensions to build on it.
A simple, regular expression based, configurable foreign extractor is implemented to provide a good reference and a good initial experience for the users.