pgcontents/api_utils.py
def writes_base64(nb, version=NBFORMAT_VERSION):
    """
    Write a notebook as base64.
    """
    return b64encode(writes(nb, version=version).encode('utf-8'))
def writes_base64(nb, version=NBFORMAT_VERSION):
    return b64encode(writes(nb, version=version).encode('utf-8'))
def writes_base64 ( nb , version = NBFORMAT_VERSION ) : return b64encode ( writes ( nb , version = version ) . encode ( 'utf-8' ) )
Write a notebook as base64.
Write a notebook as base64 .