jupyterlab_terraform_file_type_extension
v1.0.4
Published
Jupyterlab extension to support syntax highlighting for terraform files
Maintainers
Readme
jupyterlab_terraform_file_type_extension
A JupyterLab extension providing comprehensive Terraform/HCL support with syntax highlighting and custom file type recognition.

Features
Comprehensive Terraform and HCL editing support in JupyterLab with syntax highlighting that distinguishes blocks, variables, functions, and expressions.
File recognition:
- Terraform:
*.tf,*.tfvars,*.tfstate.* - HCL:
*.hcl,*.tfstack.hcl,*.tfcomponent.hcl,*.tfdeploy.hcl,*.tftest.hcl,*.tfmock.hcl,*.tfquery.hcl - Purple HashiCorp Terraform icon in file browser
Highlighting coverage:
- Block types:
resource,module,provider,variable,output,locals,data,terraform - 100+ built-in Terraform functions
- String interpolation with
${}and%{}directives - Heredoc strings and escape sequences
- Type keywords, constants, and operators
- Comments:
#,//,/* */
Yes, this is yet another mass-produced file type extension. We are almost embarrassed by how utterly unremarkable it is - just the same boilerplate code with different keywords swapped in. But someone had to do it, and here we are. Syntax highlighting shamelessly borrowed from hashicorp/vscode-terraform - we stand on the shoulders of giants, or at least peek over their fence.
Requirements
- JupyterLab >= 4.0.0
Install
To install the extension, execute:
pip install jupyterlab_terraform_file_type_extensionUninstall
To remove the extension, execute:
pip uninstall jupyterlab_terraform_file_type_extension