> ## Documentation Index
> Fetch the complete documentation index at: https://private-04b27de1.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# autogen.coding.jupyter.JupyterClient

<h2 id="autogen.coding.jupyter.JupyterClient" class="doc doc-heading">
  <code class="doc-symbol doc-symbol-heading doc-symbol-class" />

  <span class="doc doc-object-name doc-class-name">JupyterClient</span>
</h2>

```python theme={null}
JupyterClient(connection_info: JupyterConnectionInfo)
```

(Experimental) A client for communicating with a Jupyter gateway server.<br />

<b>Parameters:</b>

| Name              | Description                                                                                         |
| ----------------- | --------------------------------------------------------------------------------------------------- |
| `connection_info` | **Type:** [JupyterConnectionInfo](/docs/api-reference/autogen/coding/jupyter/JupyterConnectionInfo) |

### Instance Methods

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### delete\_kernel

```python theme={null}
delete_kernel(self, kernel_id: str) -> None
```

<b>Parameters:</b>

| Name        | Description   |
| ----------- | ------------- |
| `kernel_id` | **Type:** str |

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### get\_kernel\_client

```python theme={null}
get_kernel_client(self, kernel_id: str) -> JupyterKernelClient
```

<b>Parameters:</b>

| Name        | Description   |
| ----------- | ------------- |
| `kernel_id` | **Type:** str |

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### list\_kernel\_specs

```python theme={null}
list_kernel_specs(self) -> dict[str, dict[str, str]]
```

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### list\_kernels

```python theme={null}
list_kernels(self) -> list[dict[str, str]]
```

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### restart\_kernel

```python theme={null}
restart_kernel(self, kernel_id: str) -> None
```

<b>Parameters:</b>

| Name        | Description   |
| ----------- | ------------- |
| `kernel_id` | **Type:** str |

<br />

<code class="doc-symbol doc-symbol-heading doc-symbol-method" />

#### start\_kernel

```python theme={null}
start_kernel(self, kernel_spec_name: str) -> str
```

Start a new kernel.<br />

<b>Parameters:</b>

| Name               | Description                                               |
| ------------------ | --------------------------------------------------------- |
| `kernel_spec_name` | Name of the kernel spec to start<br /><br />**Type:** str |

<b>Returns:</b>

| Type | Description                   |
| ---- | ----------------------------- |
| str  | str: ID of the started kernel |

<br />
