Giter VIP home page Giter VIP logo

cognite-function-examples's Introduction

Cognite Function Examples

Contributor Covenant

This repository contains a set of Jupyter Notebooks showcasing the use of Cognite Functions.

Requirements

The code examples in this repository are written in Jupyter notebooks. In order to display and run the code, you need to install jupyterlab and the Cognite Python SDK:

pip install jupyterlab cognite-sdk-experimental

Authentication

For all the examples here, we will be authenticating against CDF by using Azure Active Directory. Each notebook contains the relevant instructions.

Example 01: Create a basic Cognite Function from a Jupyter Notebook

In this example, we deploy a Cognite Function in the simplest possible fashion, by referring directly to a Python-function. This is sufficient for simple use cases where your function does not rely on additional dependencies.

Example 02: Create a Cognite Function from a folder.

In this example, we take it up a notch by deploying a function that is divided across multiple Python-files. We deploy an entire folder containing our source code. This method allows you to specify additional Python package dependencies if neccessary.

We also schedule this Cognite Function to run on a regular interval.

Example 03: Create a Cognite Function that performs entity matching on time-series and assets.

In this example, we look at something more akin to a real world use case. Here we deploy a Cognite Function that runs entity matching on some of our assets, mapping time-series to assets in CDF.

We also schedule this Cognite Function to run on a regular interval.

cognite-function-examples's People

Contributors

qtiptip avatar simenkristoff avatar

Watchers

Peter Nicolai Motzfeldt avatar Louis Salin avatar Vegard Økland avatar Ermias avatar Robert Collins avatar Trygve Andre Tønnesland avatar Simon Wolfgang Funke avatar James Cloos avatar Emil Sandstø avatar Aleksandrs Livincovs avatar Nakarin Phooripoom avatar Ilya petin avatar Wim Notredame avatar Øystein Hagen Pettersen avatar Sergei avatar Eirik L. Vullum avatar Daniel Priori avatar  avatar David Liu avatar Nils Barlaug avatar Vibha Srinivasan avatar Johan avatar Robert Lombardo avatar Jacek Lakomiec avatar Tor Erik avatar Alireza Kandeh avatar Rogerio Saboia Júnior avatar Udeshika Sewwandi avatar Per Magne Florvaag avatar QuocViet Le avatar Priyanka Perera avatar Cecilie Uppard avatar Shehan Neomal Mark Fonseka avatar Shashan avatar  avatar Morten Grønbech avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.