Importing my functions/modules in isaac sim vscode extentions

Isaac Sim Version

4.2.0

No Isaac Lab Version

Operating System

Ubuntu 22.04

Topic Description

I am a new user to isaac sim.

I have written my own functions in functions.py, for instance, and I would like to import it using
from functions import my_function

In vscode extention, the environment does not have this module installed so this error pops up
No module named ‘functions’

I just want to know how to properly install my own functions/modules in vscode environment of isaac sim.

I am assuming it should be an easy step.

Thanks.

Haoyu

drag the script functions.py inside your extention’s scope:

and then to use your functions in another script:

from company.my.extension.functions import function1

or, to import everything from functions.py:

from company.my.extension.functions import *

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.