Skip to content

Failed to use pyodide-kernel out of Jupyterlite #170

@MRYingLEE

Description

@MRYingLEE

In a Javascript environment,

import pyodide from 'https://cdn.jsdelivr.net/npm/pyodide@0.27.2/+esm'

works.

In order to have additional features, I tried to use pyodide-kernel but failed.

Both

import jupyterlitepyodideKernel from 'https://cdn.jsdelivr.net/npm/@jupyterlite/pyodide-kernel@0.5.2/+esm'

and

const jupyterlitepyodideKernel = await import('https://cdn.jsdelivr.net/npm/@jupyterlite/pyodide-kernel@0.5.2/+esm');

caused

Error: Failed to bundle using Rollup v2.79.2: failed to resolve an internal import. If you believe this to be an issue with jsDelivr, and not with the package itself, please open an issue at https://github.com/jsdelivr/jsdelivr
    at https://cdn.jsdelivr.net/npm/@jupyterlite/pyodide-kernel@0.5.2/+esm:6:8
await import("https://cdn.jsdelivr.net/npm/@jupyterlite/pyodide-kernel@0.5.2/lib/index.min.js")

caused

SyntaxError: [2:95]: Unterminated template literal

Just wonder whether it is possible to use pyodide-kernel without Jupyterlite.

Please clarify.
Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions