---
title: Unlocked kernel
description: Custom `IPythonKernel` subclass with an unlocked main asyncio execution
  loop.
order: 1
---
Replaces `IPythonKernel._main_asyncio_lock` with `contextlib.nullcontext()` so concurrent asyncio coroutines and out-of-band shell messages are not serialized behind the main kernel lock.

## UnlockKernel

```python
def UnlockKernel(
    *args, **kwargs
):
```

*IPython kernel subclass whose `_main_asyncio_lock` is a no-op `contextlib.nullcontext()`.*
