Skip to main content
The quickstart demo is currently in alpha and is likely to change. Do not use this in production systems.
The quickstart package has a Notebook interface to run it as a demo and in the CDF Notebook environment. This procedure is for developers and data engineers who want to test the quickstart modules that configure Cognite Data Fusion with data pipelines to ingest and contextualize data and set up industrial tools. Prerequisites: Access to a CDF project with permissions to create service accounts and access Jupyter Notebook.

Run the quickstart package in CDF Notebook

1

Create a service account and credentials

  1. Go to Admin -> My organization.
  2. Create a CDF service account. Store the Client ID.
  3. Click the newly created service account and create new credentials. Store the Client Secret.
2

Create a new Notebook

  1. Go to Data management -> Build solutions and select Jupyter Notebook.
  2. Create a new Notebook.
3

Install cognite-toolkit

Copy-paste the content below into a cell and execute it.Installing cognite-toolkit in the CDF notebook environment:
import micropip

micropip.uninstall("prompt-toolkit")

%pip install cognite-toolkit
We uninstall prompt-toolkit because the Pyodide environment has an issue resolving dependencies. The dependency is reinstalled in a compatible version when you install cognite-toolkit.
4

Import and instantiate the Cognite ToolkitDemo

from cognite_toolkit.demo import CogniteToolkitDemo

toolkit = CogniteToolkitDemo()
5

Set up the configuration and credentials

Set up the configuration and credentials to run the quickstart package:
# This is used in the extension of the Cognite Process Indusdry Model
my_organization = "<your_organization_name>"
client_id = "<your_client_id>" # The client ID of the service account
client_secret = "<your_client_secret>" # The client secret of the service account
6

Run the quickstart package

Running the quickstart package:
toolkit.quickstart(my_organization, client_id, client_secret)
The last cell does the equivalent of running cdf auth verify, cdf modules init (selecting quickstart and choosing example data), cdf build and cdf deploy.