Functions & Classes
"Functions & Classes" are reusable code snippets that encapsulate specific logic or operations or classes. This provides code modularity, readability, and reduces duplication.
Create a Function:
This can be accessed through the create function option under function & classes tab in Assets.


There are 4 parts that can be edited once a function is created. First is the function name and versions for tracking.
There are Requirements and Imports that can be used to call certain versions of the library that's required for the function definition to work.
And finally, there is the function definition where python functions and classes can be defined in appropriate syntax.
Access in Canvas:
The above function can be imported into a canvas by using the Asset Library tab in the canvas. Imported assets are globally available on the canvas and can be accessed from any block.
Share Functions and Classes:
From the asset library tab - based on access level a user can share functions and classes with other team members. This makes sure everyone in the team is using the latest and up to date functions.


Each version can be tagged as primary, draft, outdated etc. so that team members are always using the up to date version.

Last updated