Buckets:
MisterAI/LocalAI_Demo_backends / cpu-diffusers.upgrade-tmp /venv /lib /python3.10 /site-packages /jupyter_client /clientabc.py
| """Abstract base class for kernel clients""" | |
| # ----------------------------------------------------------------------------- | |
| # Copyright (c) The Jupyter Development Team | |
| # | |
| # Distributed under the terms of the BSD License. The full license is in | |
| # the file COPYING, distributed as part of this software. | |
| # ----------------------------------------------------------------------------- | |
| # ----------------------------------------------------------------------------- | |
| # Imports | |
| # ----------------------------------------------------------------------------- | |
| from __future__ import annotations | |
| import abc | |
| from typing import TYPE_CHECKING, Any | |
| if TYPE_CHECKING: | |
| from .channelsabc import ChannelABC | |
| # ----------------------------------------------------------------------------- | |
| # Main kernel client class | |
| # ----------------------------------------------------------------------------- | |
| class KernelClientABC(metaclass=abc.ABCMeta): | |
| """KernelManager ABC. | |
| The docstrings for this class can be found in the base implementation: | |
| `jupyter_client.client.KernelClient` | |
| """ | |
| def kernel(self) -> Any: | |
| pass | |
| def shell_channel_class(self) -> type[ChannelABC]: | |
| pass | |
| def iopub_channel_class(self) -> type[ChannelABC]: | |
| pass | |
| def hb_channel_class(self) -> type[ChannelABC]: | |
| pass | |
| def stdin_channel_class(self) -> type[ChannelABC]: | |
| pass | |
| def control_channel_class(self) -> type[ChannelABC]: | |
| pass | |
| # -------------------------------------------------------------------------- | |
| # Channel management methods | |
| # -------------------------------------------------------------------------- | |
| def start_channels( | |
| self, | |
| shell: bool = True, | |
| iopub: bool = True, | |
| stdin: bool = True, | |
| hb: bool = True, | |
| control: bool = True, | |
| ) -> None: | |
| """Start the channels for the client.""" | |
| pass | |
| def stop_channels(self) -> None: | |
| """Stop the channels for the client.""" | |
| pass | |
| def channels_running(self) -> bool: | |
| """Get whether the channels are running.""" | |
| pass | |
| def shell_channel(self) -> ChannelABC: | |
| pass | |
| def iopub_channel(self) -> ChannelABC: | |
| pass | |
| def stdin_channel(self) -> ChannelABC: | |
| pass | |
| def hb_channel(self) -> ChannelABC: | |
| pass | |
| def control_channel(self) -> ChannelABC: | |
| pass | |
Xet Storage Details
- Size:
- 2.78 kB
- Xet hash:
- d4c3bbd23e03e3014c86173a4527128ac77a705da45e7e862cbf568478865777
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.