☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

passing parameters to a bokeh applet

Community Support
serge.boyko
serge.boyko

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

⌁   Link to post

End of archived discussion · Replies are disabled