Skip to content

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

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

MUFFANUJ
Copy link
Contributor

References

fixes #17446

Code changes

Added the Documentation for the Kernel Subshells.

Copy link

Thanks for making a pull request to jupyterlab!
To try out this branch on binder, follow this link: Binder

@MUFFANUJ MUFFANUJ changed the title Subshell doc Documentation for Kernel Subshells Jun 12, 2025
@jtpio jtpio added this to the 4.4.x milestone Jun 16, 2025
@MUFFANUJ MUFFANUJ marked this pull request as ready for review June 16, 2025 11:17
@jtpio
Copy link
Member

jtpio commented Jun 27, 2025

Thanks @MUFFANUJ!

cc @ianthomas23 if you would like to have a look too

Comment on lines +1111 to +1117
**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)
Copy link
Member

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?

Comment on lines +1056 to +1070
**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)
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document the use of subshells
3 participants