Sorry, I don’t know how to do that unless you are importing a module. If developer reads this thread then maybe they can comment on the scope/namespace of component scripts. Or if someone has an example then please share.
I don’t think you can share instances between two python sandboxes in Visual Components. The script typically communicate data with other means. Maybe it is possible to serialize the class/instance and send it as a string etc. but sounds sketchy.
Could you describe your use case. What are you trying to achieve. Maybe we’ll find another solution for you.
You need to login in order to like this post: click here