Global Imports

Imports done under each code block will work only inside it. Users can add a package or function to Global Imports section to make it available across all the blocks in the canvas.

How to set global import commands

Accessing a package via Global Import

Global Import

Accessing a package across all the blocks through Global Imports

Accessing Global Import across blocks

How to set local, block-level import commands

For larger packages like pytorch - which are required to be run only on specific blocks - we can use block level imports.

Block level Import

Last updated