# Global Imports

## How to set global import commands

Accessing a package via Global Import

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIQKNeqjEeOp9UwUcB9R9%2Fuploads%2FQYhUaqgCQfnRxvnhBCJw%2FScreen%20Recording%202025-04-04%20at%2010.57.49%E2%80%AFAM.mp4?alt=media&token=76d208e4-37fc-4d52-81c6-93ba0c167269>" %}
Global Import
{% endembed %}

Accessing a package across all the blocks through Global Imports

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIQKNeqjEeOp9UwUcB9R9%2Fuploads%2FkgZ93EwVtLRLQeKeZB4E%2FScreen%20Recording%202025-04-04%20at%2011.09.51%E2%80%AFAM.mp4?alt=media&token=722107a5-00b7-47ae-928e-e8c9f44f7dc8>" %}
Accessing Global Import across blocks
{% endembed %}

## 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.&#x20;

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIQKNeqjEeOp9UwUcB9R9%2Fuploads%2F4yA6sHEMD3pXApMIVCHQ%2FScreen%20Recording%202025-04-04%20at%2011.30.07%E2%80%AFAM.mp4?alt=media&token=293b15e7-fbdd-4fc4-9d51-5d30451e3bcc>" %}
Block level Import
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.zerve.ai/guide/canvas-view/global-imports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
