Run the quickstart package in CDF Notebook
1
Create a service account and credentials
- Go to
Admin->My organization. - Create a CDF service account. Store the Client ID.
- Click the newly created service account and create new credentials. Store the Client Secret.
2
Create a new Notebook
- Go to
Data management->Build solutionsand selectJupyter Notebook. - 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: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
5
Set up the configuration and credentials
Set up the configuration and credentials to run the quickstart package:
6
Run the quickstart package
Running the quickstart package: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.