Integrating IBM Cognos Analytics and Jupyter Notebook: requirements and setup
What Jupyter Notebook adds inside Cognos Analytics, how to install the server with Docker and which features it gives data scientists.
Data scientists often work in their own tools and export results later, which creates information silos. With Jupyter Notebook built into IBM Cognos Analytics, explorations are created, documented and shared on the same platform as dashboards. This article covers installing the server with Docker, configuring Cognos and the features the integration adds.
TABLA DE CONTENIDOS
Series «Cognos Analytics and Jupyter Notebooks», part 1 of 2. Part 1 · Part 2
IBM Cognos Analytics lets you work with Jupyter Notebooks inside the same platform where you build dashboards, stories and reports. This article explains what that integration gives data scientists, what you need to install and configure it, and which features it adds. It was done in May 2020 on version 11.1.5.
Why integrate Jupyter Notebooks into Cognos Analytics
As we have covered before, IBM Cognos Analytics keeps improving its visualization and self-service tools. Recent versions added explorations (which find relationships in the data that aren’t visible at first glance and suggest visualizations to show them) and greatly improved the visualizations themselves. Even so, that is sometimes not enough for data scientists, who need more freedom to explore data.
Until now, data scientists worked with their own tools and then, one way or another, exported the results so they could be used in analyses. That creates information silos that may or may not be shared and fed back.
With Jupyter Notebooks built into Cognos Analytics, we can create, document and share explorations on a single platform. It is a plus for data scientists, and the results can easily be brought into the existing BI and data visualization tools in Cognos Analytics.
For those who don’t know it, Jupyter Notebook is a web application for creating and sharing documents that contain, for example, code (in our case, Python), equations, visualizations and narrative text. The uses we care about most include data cleaning and transformation, numerical simulation, statistical modeling, data visualization and machine learning.
This integration has been available since IBM Cognos Analytics 11.1.2, and we set it up on 11.1.5, the latest version as of May 2020. IBM still offers the IBM Cognos Analytics for Jupyter Notebook component in the Cognos Analytics 12.1 line, according to its download page for version 12.1.2.
Integration steps and requirements
The Jupyter Notebook server
The integration requires a server for Jupyter Notebook, which can be the same one where Cognos Analytics is installed or a different one. In 2020, the supported platforms for that server were Linux (CentOS, Ubuntu or Red Hat Enterprise Linux) and Windows 10. Whatever platform you choose, the server must have Docker installed.
In our case, we integrated IBM Cognos Analytics on Windows Server 2012 R2 with a Jupyter Notebooks server on CentOS 7 running Docker CE (Community Edition).
Installing the container
On the Jupyter Notebooks server, download the IBM Cognos Analytics for Jupyter Notebook Server installer from Passport Advantage and run it. It copies to a directory the files and scripts that install the Docker container and start it as a Jupyter Notebooks server. The container lets IBM Cognos Analytics users create and edit notebooks in the same environment where they build dashboards, stories and reports.
By default, the container comes with the most common Python packages for data science and analytics, and you can update them or install any others you need.
Configuring access from Cognos Analytics
Once the container is installed and running, all that’s left is to configure access from Cognos Analytics: grant the relevant users permissions on the Notebook functions (Capabilities) and enable the connection between Cognos Analytics and IBM Cognos Analytics for Jupyter Notebook Server.
To do that, go to Manage > Configuration > System > Environment in Cognos Analytics and set the Jupyter Notebook server URL. The default port is 8000; for example: http://jupyter-server:8000.

What the integration looks like in Cognos Analytics
With all of that done, we can see how the integration between IBM Cognos Analytics and Jupyter Notebook works in practice. First, when you create new content in Cognos Analytics, there is a New > Notebook option.

As the menu on the left shows, you can browse data sources the same way as in the platform’s other tools.
Features the integration adds
The integration makes new features available in notebooks. Here are some of them:
- Create and update notebooks: create, edit, copy, move and upload a notebook created outside Cognos.
- Run and work with Cognos data in a notebook. Cognos has a connector that reads and writes Cognos data through an API:
- It can read from uploaded CSV or XLS files, data sets, data modules and Framework Manager packages, including OLAP data.
- It can save content generated in a notebook as a new data source in Cognos, so it can be used like any file uploaded to the platform.
- Include notebook outputs in dashboards, stories or reports.
In the next article, we will look at some hands-on examples of the integration between Cognos Analytics and Jupyter Notebooks.
Marcelo Celio
Computer Engineer / Data & Analytics consultant