-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exposing current sessionContext
to ipylab
#43
Comments
Thanks @TK-21st! That would indeed be very useful. I guess another way would be to get a hold on the current notebook (either the current notebook or by accessing the opts = notebook.sessionContext() |
By the way if you feel like opening a PR (even as a draft), please don't hesitate! |
Just did! WIP on reporting the current kernel back. Also I tried to define a bunch of |
The latest PR should have the feature necessary. It was easy to show all sessions, since I can just expose Need to figure out linter still but it is functional |
I opted for using tracker since I wanted to potentially get the session of console widgets too. Turns out that's not working.. Comm open error. |
Right, the current JupyterLab widget manager does not handle consoles (yet). |
Fixed by #46. |
General Description
Add API to ipylab where the user can gather information about the current or all
sessionContext
currently in the JLab workspace (potentially exposingsessionManager
).Usage
ipylab
currently supports command execution such asFor JupyterLab extensions that interacts with kernel
sessions
viasessionContext
, we should be able to have access to the current session in the notebook/console viaipylab
. For exampleThe text was updated successfully, but these errors were encountered: