Skip to main content
BRILLIQS

Hex

A collaborative workspace where SQL, Python and no code cells sit in one project that can be published as an app.

Hex is a workspace for data work. A project is made of cells, and those cells can be SQL, Python, or configured without code, with results passing between them. The same project can then be published as an interactive application, so the analysis and the thing colleagues use are the same artefact.

The fragmentation Hex addresses

A piece of analysis typically passes through several tools.

The data is queried somewhere that can run SQL. Then it moves to a notebook for the parts SQL is awkward at. Then the conclusion is written up somewhere else, with charts pasted in. Then somebody asks to try different inputs, and there is nothing to give them.

Four artefacts, three copies of the data and no single place that represents the work.

Hex puts the whole sequence in one project.

Cells that are not all the same kind

A project is made of cells, and the useful part is that they need not all be one type.

A SQL cell queries a connected source. A Python cell operates on the result. A configured cell produces a chart or a transformation without code being written.

Results pass between them. A SQL result is available to Python as a data frame, so the boundary that normally requires an export and a reimport is not a boundary here.

That means each part of the work can be done in whichever form suits it, rather than everything being forced into one language because that is what the tool speaks.

Publishing changes what a project is for

The capability that most distinguishes Hex is that a project can be published as an application.

The same project, with a chosen layout and input controls, becomes something colleagues use. They see the controls and the results. They do not see the cells.

The consequence is that there is one artefact rather than two. In the usual arrangement, an analysis and the application built from it are separate things that drift apart. Here the thing colleagues are using is the analysis, so it cannot be out of date relative to itself.

Collaboration

Projects live in a shared workspace rather than on individual machines.

That sounds administrative and it changes the quality of the work. Analysis that others can open is analysis that can be reviewed, questioned and picked up by somebody else. Analysis on a laptop is none of those things.

Who uses Hex

Hex is used by analytics and data science teams whose work spans SQL and Python, and by organisations that want analysis both reviewable by colleagues and usable by a wider audience without a second build.

Points to consider

Creating content requires SQL and, for much of what makes it worthwhile, Python. It is aimed at analysts and data scientists rather than at business users building their own content.

Connections and how query results are handled are worth reading in the documentation where data handling matters, since the tool sits between users and the sources it queries.

For a team wanting only dashboards over modelled tables, a business intelligence tool is a more direct fit than a workspace built around code.

Getting started

The documentation covers connecting a data source, building a project with SQL and Python cells, adding input controls and publishing the result as an application. Building a project with one SQL cell feeding one Python cell shows how results move between them.

Key features of Hex

Capabilities described in the official documentation.

Mixed cell types in one project

SQL, Python and configured cells sit in the same project, and the result of one is available to the next.

Results passed between languages

A SQL result becomes a data frame available to Python, so moving between them needs no export step.

Publishing as an application

A project can be published with a chosen layout and input controls, so readers use it without seeing the code.

Collaboration in one workspace

Projects live in a shared workspace where colleagues can work on and review the same analysis.

Advantages of Hex

Factual advantages that follow from the features above.

One artefact serves both audiences

The analysis and the published application are the same project, so they cannot drift apart.

No handoff between tools

Querying, modelling and presenting happen in one place rather than across a query tool, a notebook and a document.

Readers do not need the code

A published view shows controls and results, so colleagues use the analysis without reading how it works.

Work is visible to the team

Because projects are in a shared workspace, analysis can be reviewed rather than living on one person's machine.

Common use cases for Hex

Situations the official documentation describes this tool as being used for.

Analytics

Analysis published as a tool

A project is published with input controls so colleagues run it with their own parameters.

Data science

Combining SQL with statistical work

A SQL cell pulls the data and a Python cell applies a method to it within the same project.

Business operations

Reviewing an analysis as a team

Colleagues open the same project to check the queries and logic behind a conclusion.

Operations

A recurring investigation

A project is reused with different inputs rather than an ad hoc analysis being rebuilt each time.

Official website

Everything on this page is based on the official documentation for Hex. You can read the source here.

Hex official documentation

Frequently asked questions about Hex

Answers taken from the official documentation for this tool.

The result of a SQL cell is available to Python cells as a data frame. That means data is queried where it is best queried and then worked on in code, with no export and reimport between the two.

It is cell based like a notebook, and it differs in that cells can be SQL or configured without code, and that a project can be published as an application. Those two additions are what distinguish it from a plain notebook environment.

The same project is presented with a chosen layout and input controls. Readers see the controls and results rather than the cells, so one project serves both the person who built it and the people who use it.

Queries run against the data sources you connect. The documentation covers the supported connections and how results are handled, which is the right reference when data handling matters.