Skip to content

inline_output does not work with R kernel #46

Closed
@randy3k

Description

@randy3k

Great job of migrating to the jupyter client.

When the option inline_output is set true, there is no inline output when the R code is run. I can see that from the console the code was executed correctly by the kernel but Hermes doesn't pick up the result and show it. Nevertheless, plots are shown correctly inline and everything works if inline_output is false.

Code sample:

a = 1
a

plot(1:100)

screen shot 2018-07-12 at 1 10 37 pm

Console log:

{'buffers': [], 'msg_id': '69e13612-7c50-4751-b292-bf35271b3657', 'parent_header': {'msg_id': 'e0b75075-5e7d188c43005a4a0c462f30', 'date': datetime.datetime(2018, 7, 12, 17, 6, 23, 661297, tzinfo=tzutc()), 'username': 'Randy', 'msg_type': 'execute_request', 'version': '5.3', 'session': '7e86bc5f-c7f908b6bdabb89525f3583b'}, 'msg_type': 'execute_input', 'content': {'execution_count': 10, 'code': 'a'}, 'header': {'msg_id': '69e13612-7c50-4751-b292-bf35271b3657', 'date': datetime.datetime(2018, 7, 12, 17, 6, 23, 664965, tzinfo=datetime.timezone.utc), 'username': 'Randy', 'msg_type': 'execute_input', 'version': '5.0', 'session': '7e86bc5f-c7f908b6bdabb89525f3583b'}, 'metadata': {}}
{'buffers': [], 'msg_id': 'ebd8ffe3-9cf1-4c99-b49c-9fe73fe94300', 'parent_header': {'msg_id': 'e0b75075-5e7d188c43005a4a0c462f30', 'date': datetime.datetime(2018, 7, 12, 17, 6, 23, 661297, tzinfo=tzutc()), 'username': 'Randy', 'msg_type': 'execute_request', 'version': '5.3', 'session': '7e86bc5f-c7f908b6bdabb89525f3583b'}, 'msg_type': 'display_data', 'content': {'data': {'text/plain': '[1] 1', 'text/markdown': '1', 'text/latex': '1', 'text/html': '1'}, 'metadata': {}}, 'header': {'msg_id': 'ebd8ffe3-9cf1-4c99-b49c-9fe73fe94300', 'date': datetime.datetime(2018, 7, 12, 17, 6, 23, 678995, tzinfo=datetime.timezone.utc), 'username': 'Randy', 'msg_type': 'display_data', 'version': '5.0', 'session': '7e86bc5f-c7f908b6bdabb89525f3583b'}, 'metadata': {}}

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