Is there a way to create an extension for Jupyter Lab that I can manipulate through the Python cells in my notebook?
In Jupyter Notebook, this could be achieved via an IPywidget, which had a Python backend and Javascript front-end. These two could interact, and so I could send instructions to the javascript front-end via Python, and vice-versa.
From what I understand, this is no longer possible in Jupyter Lab, since they disabled the feature to execute javascript via IPython. The recommendation is to create jupyterlab extensions. Is it possible to control such an extension via Python code, and if so how?
In a simple example, I want a sidebar (like the TOC extension) that contains a textbox whose text I can set via Python.