Skip to content

Fix do_shutdown coroutine warning and improve console UX#280

Merged
blink1073 merged 6 commits into
Calysto:mainfrom
blink1073:fix-do-shutdown
Mar 13, 2026
Merged

Fix do_shutdown coroutine warning and improve console UX#280
blink1073 merged 6 commits into
Calysto:mainfrom
blink1073:fix-do-shutdown

Conversation

@blink1073
Copy link
Copy Markdown
Contributor

@blink1073 blink1073 commented Mar 13, 2026

Summary

  • Fixes RuntimeWarning: coroutine 'ProcessMetaKernel.do_shutdown' was never awaited when user types quit/exit in a cell — replaces the unawaited coroutine call with the standard Jupyter ask_exit payload so the console exits cleanly
  • Adds do_is_complete() to eliminate the double-Enter required to submit input in jupyter-console (was caused by unhandled is_complete_request)
  • Enables code_display_data plot tests on all platforms — previously only ran on Linux

Test plan

  • just test-kernel passes on macOS/Linux/Windows
  • Typing exit in jupyter console --kernel=octave exits cleanly in one Enter
  • Multi-line blocks (e.g. if true) show continuation prompt; single-line inputs execute immediately

- Replace unawaited do_shutdown() coroutine with ask_exit payload so
  quit/exit properly terminates the Jupyter console session
- Add do_is_complete() to handle is_complete_request, eliminating the
  double-Enter required to submit input in jupyter-console
- Enable code_display_data tests on all platforms (was Linux-only)
@blink1073 blink1073 added the bug label Mar 13, 2026
@blink1073 blink1073 enabled auto-merge (squash) March 13, 2026 02:36
@blink1073 blink1073 merged commit bb14e37 into Calysto:main Mar 13, 2026
23 checks passed
@blink1073 blink1073 deleted the fix-do-shutdown branch March 13, 2026 03:03
@blink1073 blink1073 mentioned this pull request Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant