Skip to content

Generating multiple responses from multiple lines of code in a notebook code cell #11

@psychemedia

Description

@psychemedia

In IPython notebooks, code cell outputs display any object returned by the last line of code in the block.

In the Jupyter IRkernel, response objects are displayed from each response generating line of code:

image

In the jupyterlite-webr-kernel, we seem to follow the behaviour of the IPython kernel rather than the IRkernel:

image

As does the xeus R kernel:

image

Does the webr kernel return the multiple values, so that they could all be displayed, as per the IRkernel model, or does it just return the final value?

Actually, is the IRkernel displaying values as they are returned, rather than returning a result from the code cell? IRkernel behaviour described here: IRkernel/IRkernel#225 Seems like the IRkernel folk are maybe doing something atypical...

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions