You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be helpful to build some kind of JupyterlabContext React context which provides access to all the APIs provided by other JupyterLab extensions?
For example, I was thinking that a component could call something like:
const{ commandRegistry }=useJupyterlabContext();
and similarly so to access other JupyterLab singletons. This would simplify the frontend code by not requiring us to pass every singleton as a prop to every child component. This is also equivalent in terms of performance, as these singleton objects are not changed at runtime.
This context could probably includes most of the properties of the ChatBodyProps, but also the activeCellManager and the selectionWatcher that are currently in the model.
The text was updated successfully, but these errors were encountered:
Originally posted by @dlqqq in #148 (comment)
This context could probably includes most of the properties of the
ChatBodyProps
, but also theactiveCellManager
and theselectionWatcher
that are currently in the model.The text was updated successfully, but these errors were encountered: