def start_new_kernel(startup_timeout=60, kernel_name='python', **kwargs):
    """Start a new kernel, and return its Manager and Client"""
    km = KernelManager(kernel_name=kernel_name)
    km.start_kernel(**kwargs)
    kc = km.client()
    kc.start_channels()
    try:
        kc.wait_for_ready(timeout=startup_timeout)
    except __HOLE__:
        kc.stop_channels()
        km.shutdown_kernel()
        raise

    return km, kc
dataset/ETHPy150Open jupyter/jupyter_client/jupyter_client/manager.py/start_new_kernel