Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Global imports

Make imports available to every block in a project.

Imports in a block only apply to that block. To make a package or function available to every block in a project, add it to Global imports.

Open the imports sidebar with Ctrl+4 (Windows) or ⌘+4 (Mac).

Global or block-level?

Use
For

Global imports

Packages used throughout the project, such as pandas and numpy

Block-level imports

Large packages only a few blocks need, such as torch, so other blocks don't load them

If a block uses a package that's neither imported globally nor in the block, it fails with an import error.

Last updated

Was this helpful?