Running Deadline code from Visual Studio Code


I’m trying to code on visual studio code and run my code for Deadline. I’m not able to run my code from visual studio.

Here is a simple snippet of my code :
from Deadline.Scripting import *

def main( *args ):
selectedJobs = MonitorUtils.GetSelectedJobs()

Here is my error :

from Deadline.Scripting import *
ModuleNotFoundError: No module named ‘Deadline’

My operating system is the following: macOS Catalina

That class is only available if you run it via Deadline command.

The package that you can import and use directly in IDE is the stand-alone API