---
title: "Python / HSL interaction"
canonical: "https://help.vicon.com/space/ShogunPost121/1253737990/Python%20%2F%20HSL%20interaction"
format: markdown
---
A command in HSL runs a Python command string, which works in the same way as the Shogun Post command line.

```plaintext
python "shogunPost.Command()";
```

You can call a Python script from HSL in the same way as a native one:

```plaintext
MyPythonScript;
```

It can also be given arguments:

```plaintext
MyPythonScript( "Arg1", "Arg2");
```

> ℹ️ **Note**   
> ℹ️ Returning values back from Python to HSL is not supported. You also cannot step into a Python script in the debugger.

You can call HSL from Python, using the following HSL command.

```plaintext
Result = shogunPost.HSL('hslString;')
```

The command returns a Python string containing the result of the HSL operation.