Skip to content

kernel-messaging: to get the returned value instead of a JSON for display #267

@MRYingLEE

Description

@MRYingLEE

Problem

In the example kernel-messaging, for the code "3+5", JSON object {"data": {"text/plain":"8"},...} will be returned and displayed. Actually, the logic value is 5 instead of "5". It is hard for the following code to consume the result.

Just wonder there is an intuitive way to get the returned value from code instead of something to display.

Proposed Solution

In the example, provide an example function similar to
async runCodeInKernel(code: string)=> any;

Thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions