Skip to content

DatalabClient().convert does not work in Jupyter notebook #7

@ayushman72

Description

@ayushman72
from datalab_sdk import DatalabClient, ConvertOptions

client = DatalabClient(api_key="API_KEY")

options=ConvertOptions(
    additional_config={
        "image_threshold":0.3
    }
)

client.convert(
    "C:/Users/ayushman/Downloads/gegp101-5.pdf",
    options,
    "output/run4/chapter"
)

when run in a jupyter notebook gives the error

RuntimeError: asyncio.run() cannot be called from a running event loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions