-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Documentation for Kernel Subshells #17623
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
base: main
Are you sure you want to change the base?
Conversation
Thanks for making a pull request to jupyterlab! |
Thanks @MUFFANUJ! cc @ianthomas23 if you would like to have a look too |
**Communication Settings** | ||
|
||
Configure how widget `comms <https://jupyter-client.readthedocs.io/en/stable/messaging.html#custom-messages>`__ use subshells via Settings → Advanced Settings → Kernel: | ||
|
||
- ``disabled``: No subshells for comms | ||
- ``perCommTarget``: One subshell per comm target (default) | ||
- ``perComm``: One subshell per comm (can create many subshells) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be in user documentation instead?
**User Interface** | ||
|
||
Users can create subshell consoles in two ways: | ||
|
||
1. **Command Palette**: Press ``Ctrl+Shift+C`` and search for "New Subshell Console for Notebook" | ||
2. **Context Menu**: Right-click in a notebook (only visible when kernel supports subshells) | ||
|
||
To verify subshell functionality, use the ``%subshell`` magic command in Python kernels: | ||
|
||
.. code:: python | ||
|
||
%subshell | ||
# Output shows: | ||
# subshell id: None (main shell) or unique ID (subshell) | ||
# subshell list: ['id1', 'id2', ...] (active subshells) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is duplicated with a very similar section in user-facing docs, can you replace it with one sentence linking to _subshell-console
target?
References
fixes #17446
Code changes
Added the Documentation for the Kernel Subshells.