# Creating and running scripts

### Creating a Script

Navigate to **Scripts** in the Tools menu and click <img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FaZ3muxr2GW3Lti623mHe%2FScreenshot%202025-02-03%20at%203.03.01%E2%80%AFPM.png?alt=media&#x26;token=ea21aa20-9c21-40d6-b8c3-c7c88962e6cf" alt="" data-size="line">.

In the dropdown menu, specify your language of choice: Python, Julia or MATLAB.

<figure><img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FKIVpjVz5eFfNj02W9Tos%2FScriptsLanguages.png?alt=media&#x26;token=d15a945c-220a-449a-aeab-f419c37d2d85" alt=""><figcaption></figcaption></figure>

You can also give your script a descriptive name.

<figure><img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FTCTg7TU0IvtPYRubMmTb%2FScript%20Name.png?alt=media&#x26;token=3f870aa3-2056-4df8-935d-f98c892ab145" alt="" width="375"><figcaption></figcaption></figure>

Now test your skills. With Python selected, type in `print('hello world')` and click <mark style="background-color:purple;">**Run Script**</mark>**.** This will execute the script and display the output in a new output window underneath the script.

<figure><img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FvD4CwQF8lnOkA7XwHjFU%2Fimage%20(2).png?alt=media&#x26;token=e0739585-5e38-4ae0-89c1-ca8ac4a480a2" alt=""><figcaption></figcaption></figure>


---

# 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.violetlabs.com/features/scripts/creating-and-running-scripts.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.
