Do you mean like, you want to have a slider in Observable, and then use the value of the slider in Python?
Tom’s done a few versions of Jupyter integrations; his latest is GitHub - thomasballinger/observable-jupyter-widget. I haven’t tried it, but it sounds like it does what you’re looking for — you can pass Python variables into the widget, and get values back out:
Widgets have a
.valueattribute which is a dictionary of values from Observable cells.
I tried one of Tom’s notebooks, but it mainly used “embeds” to embed a notebook in Observable within Colab’s interface. I am seeking something more lower level to where I can code completely in Python (in a Colab notebook) but leverage Observable to make Colab python notebooks more interactive. Maybe widgets are the answer.