How do I use portable classes with uplink? (updated)

I am having the exact same issue as @david.wylie was having. I think it could be clearer in the documentation for using Portable Classes with the Uplink.

Should we be using the Client Uplink or Server Uplink to have a Portable Class exist outside our app, initialized on a different machine (like personal computer)?

I have a sample of how I am implementing the Portable Class, but I don’t think its actually using the class I’ve defined locally with the Uplink. I have turned off the Uplink connection, and the Portable Class still gets invoked in my Anvil App when I run it.

My local file structure is setup with the module called uplink_module.py in a flat file directory. The uplink connection is created in another file called client_uplink.py (I have also tried with a server uplink - server_uplink.py). The Anvil app gives an import error if I try importing uplink_module.py instead of Portable_Classes.

uplink_module.py

import anvil.server

@anvil.server.portable_class('_Test')
class Test_Class():
  
  def __init__(self):
    self.say_hello()
    
  def say_hello(self):
    print("Hello, world from Uplink")