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
Every time an update is introduced that exposes additional tokens to ipylab, the plugin will be rebuilt.
Specific use case for FocusTracker discussed in #44
Following up on the original discussion around providing a mechanism for ipylab to be aware of the sessionContext associated with the current widget from which ipylab is invoked. The current approach is to expose the entire global FocusTracker to user, but the more disciplined approach will be to use INotebookTracker and IConsoleTracker instead. However, if there is a custom extension that needs to track the current sessionContext that is not tracked in either tokens (since this custom extension would not be notebook or console), the user could provide custom tracker token but that will require rebuilding ipylab.
Right, but it could indeed be useful! Maybe we could track that in a separate issue?
But I was also considering the super edge-case where the user wants to use, say, CodeCell in a custom extension not tracked by INotebookTracker or IConsoleTracker, and hope to inject some code there with ipylab, then this won't work.
The custom extension could provide its own track (ICustomTracker), and then ipylab could require this token as optional in the activate function. Although that would mean making a change to ipylab everytime we need to support a new extension. So yes a more general focus tracker could probably scale better.
Related to #44 and #43.
General Description
ipylab
interfaces with JLab by exposingrequires
Tokens as follows:Every time an update is introduced that exposes additional tokens to
ipylab
, the plugin will be rebuilt.Specific use case for
FocusTracker
discussed in #44Following up on the original discussion around providing a mechanism for
ipylab
to be aware of thesessionContext
associated with the current widget from whichipylab
is invoked. The current approach is to expose the entire globalFocusTracker
to user, but the more disciplined approach will be to useINotebookTracker
andIConsoleTracker
instead. However, if there is a custom extension that needs to track the currentsessionContext
that is not tracked in either tokens (since this custom extension would not be notebook or console), the user could provide custom tracker token but that will require rebuildingipylab
.Possible Solutions
FocusTracker
as it is and work from there. Or maybe exposeapp
to every widget and do some black magic within each widget. 🔨The text was updated successfully, but these errors were encountered: