passing parameters to a bokeh applet

Hello,

I would like to pass parameters to a bokeh applet, mainly to be able to implement MVC architecture. However, I faced with some difficulties. In the examples applets are created using the create class method. Class variables created using Instance class then become accessible to instance methods. I can override base class initializer, but because create method uses cls() to return obj (and some meta-class magic behind the scenes) it throws an error complaining about the wrong number of parameters passed to init.

Instance class requires only subclasses of HasProperty. I was able to subclass HasProperty and use this class to pass parameters, but despite I have not got any errors, the applet was empty.

My questions is the following: what is the best way to pass parameters to the applet without having to use global objects? I would appreciate you if could point me to some references.

Thanks.

-Serge