jupyterlab_makefile_file_type_extension
v1.0.98
Published
Jupyterlab extension to add handling of Makefiles and syntax colouring support
Maintainers
Readme
jupyterlab_makefile_file_type_extension
A JupyterLab extension providing comprehensive Makefile support with syntax highlighting and custom file type recognition.

Features
Comprehensive Makefile editing support in JupyterLab with syntax highlighting that distinguishes targets, variables, conditionals, and shell constructs.
File recognition:
- Standard names:
Makefile,makefile,GNUmakefile - Extensions:
*.mk,*.mak,*.make - Custom red "M" icon in file browser
Highlighting coverage:
- Build targets and dependencies
- Variable references and shell constructs
- Conditional directives
- Special targets and silent commands
- Line continuations and quoted strings
Requirements
- JupyterLab >= 4.0.0
Install
To install the extension, execute:
pip install jupyterlab_makefile_file_type_extensionConfiguration
IMPORTANT: Configure Tab Character Usage
Makefiles require tab characters for recipe command indentation. Recipe lines starting with spaces instead of tabs will cause Make execution to fail with "missing separator" errors. Configure JupyterLab to use tabs:
- Open JupyterLab Settings → Settings Editor
- Navigate to Text Editor section
- Set Indentation Unit to
Tab
Alternatively, add this to your JupyterLab Text Editor settings JSON:
{
"editorConfig": {
"indentUnit": "Tab",
"tabSize": 4
}
}Note: All recipe commands (lines that execute shell commands under targets) MUST start with a tab character. The syntax highlighter requires tab-indented recipe lines for proper highlighting - space-indented recipes will not be highlighted and will fail during Make execution.
