Title: IRkernel does not handle interrupt_message control message · Issue #727 · IRkernel/IRkernel · GitHub
Open Graph Title: IRkernel does not handle interrupt_message control message · Issue #727 · IRkernel/IRkernel
X Title: IRkernel does not handle interrupt_message control message · Issue #727 · IRkernel/IRkernel
Description: I followed the official installation instructions I reproduced the error with the newest versions of IRkernel, IRdisplay, and repr I included a minimal reproducible example This the right repository: I think the issue is with IRkernel, n...
Open Graph Description: I followed the official installation instructions I reproduced the error with the newest versions of IRkernel, IRdisplay, and repr I included a minimal reproducible example This the right repositor...
X Description: I followed the official installation instructions I reproduced the error with the newest versions of IRkernel, IRdisplay, and repr I included a minimal reproducible example This the right repositor...
Opengraph URL: https://github.com/IRkernel/IRkernel/issues/727
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IRkernel does not handle interrupt_message control message","articleBody":"\u003c!--Before submitting an issue please be sure you can check these boxes (`[ ]` → `[x]`):--\u003e\r\n\r\n- [x] I followed the [official installation instructions](https://irkernel.github.io/installation/)\r\n \u003c!--If you have an installation problem, a segfault, `caught illegal operation`, `cannot open shared object file`, …\r\n and installed IRkernel using Anaconda, please report your issue to them instead.--\u003e\r\n- [x] I reproduced the error with the newest versions of `IRkernel`, `IRdisplay`, and `repr`\r\n \u003c!--If the following code installs packages, you didn’t yet:\r\n old_pkgs \u003c- intersect(old.packages()[, 'Package'], c('IRkernel', 'IRdisplay', 'repr'))\r\n if (length(old_pkgs) \u003e 0) install.packages(old_pkgs)\r\n --\u003e\r\n- [ ] I included a [minimal reproducible example](https://stackoverflow.com/a/5963610/247482)\r\n- [x] This the right repository: I think the issue is with IRkernel, not\r\n [IRkernel/repr](https://github.com/IRkernel/repr/issues/new) or a third party repository\r\n \u003c!--If the way a value is displayed is ugly or you got `ERROR while rich displaying an object`, it’s a `repr` problem.\r\n If an error stack trace or the install log shows a problem in another package, go to its issue tracker.--\u003e\r\n\r\nMy team deploys IRkernel 1.3.1 as remote kernels for a Jupyter-compatible notebook webapp.\r\n\r\nWe install it in a Docker image with ```IRkernel::installspec(user = FALSE)```.\r\n\r\nOur architecture implements implements the [Messaging protocol here](https://jupyter-client.readthedocs.io/en/stable/messaging.html#) for communicating with Jupyter kernels.\r\n\r\nThe issue we encounter is in interrupting the kernels. We send [the `interrupt_request` message type to the remote kernel via the CONTROL channel](https://jupyter-client.readthedocs.io/en/stable/messaging.html#kernel-interrupt). This works well for [ipykernel](https://github.com/ipython/ipykernel/blob/v6.20.1/ipykernel/kernelbase.py#L910-L915), but not at all for IRkernel.\r\n\r\nDigging into the code for v1.3.1 I see that the kernel [handles only one message in the CONTROL channel](https://github.com/IRkernel/IRkernel/blob/1.3.1/R/kernel.r#L329-L340), `shutdown_request`.\r\n\r\nIt would be nice if IRkernel could handle the `interrupt_request` message type the same way it does with SIGINT.\r\n\r\n## Related\r\n\r\nThis might be related to this issue with Jupyter Notebook https://github.com/IRkernel/IRkernel/issues/677\r\n\r\nAnd implementation could be similar to https://github.com/IRkernel/IRkernel/pull/704 for `kernel_info_request`.\r\n","author":{"url":"https://github.com/ahjota","@type":"Person","name":"ahjota"},"datePublished":"2023-01-12T19:29:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/727/IRkernel/issues/727"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bbd03e2a-70f1-59c5-f957-f90f6b3394fa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E75C:331A8B:22015:30FB6:6978A6BD |
| html-safe-nonce | e2a61c5ef793f7516bb7f2fc4604509c6f6437dc54ec7e31bc700cfbe9d9b872 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzVDOjMzMUE4QjoyMjAxNTozMEZCNjo2OTc4QTZCRCIsInZpc2l0b3JfaWQiOiI3Mjg2ODA0NjM4MzE5Njc0MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d0d9fb7aeb891700a63beecc787aaeab7278a5e8ca8d11b2296d6ae2b368bc01 |
| hovercard-subject-tag | issue:1531246570 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IRkernel/IRkernel/727/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9f4a2cd7d1c165df4c5d6289b6f21374b6ce6cbed21702fa2942d74ed8cc7caf/IRkernel/IRkernel/issues/727 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9f4a2cd7d1c165df4c5d6289b6f21374b6ce6cbed21702fa2942d74ed8cc7caf/IRkernel/IRkernel/issues/727 |
| og:image:alt | I followed the official installation instructions I reproduced the error with the newest versions of IRkernel, IRdisplay, and repr I included a minimal reproducible example This the right repositor... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ahjota |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/IRkernel/IRkernel git https://github.com/IRkernel/IRkernel.git |
| octolytics-dimension-user_id | 11616939 |
| octolytics-dimension-user_login | IRkernel |
| octolytics-dimension-repository_id | 17196838 |
| octolytics-dimension-repository_nwo | IRkernel/IRkernel |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17196838 |
| octolytics-dimension-repository_network_root_nwo | IRkernel/IRkernel |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8aa86d87c47054170094daaf9699b27a28a8448 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width