runt console command launches a standalone Jupyter kernel and provides an interactive Read-Eval-Print-Loop (REPL) in your terminal.
Usage
Arguments
Name of the kernel to launch (e.g.,
python3, julia, deno).If omitted, you must provide a custom command with --cmd.Options
Custom command to launch the kernel. Use
{connection_file} as a placeholder for the connection file path.Example: --cmd "deno jupyter --kernel --conn {connection_file}"Print all Jupyter protocol messages for debugging.
Examples
Python console
Custom kernel command
Debug mode (verbose)
Features
Input/Output Handling
- Standard output: Streamed to terminal as it’s produced
- Standard error: Displayed in red
- Return values: Shown as
Out[N]: ... - Errors: Full traceback displayed
Stdin Support
The console supportsinput() calls from the kernel:
Execution Count
Each input/output is numbered sequentially, matching the Jupyter notebook experience:Keyboard Shortcuts
| Key | Action |
|---|---|
Ctrl+D | Exit the console |
Ctrl+C | Interrupt running code (sent to kernel) |
Exit Behavior
When you exit the console (Ctrl+D or EOF):- A graceful shutdown request is sent to the kernel
- The kernel process is terminated
- Connection files are cleaned up
Advanced Usage
Launch Julia kernel
Launch R kernel
Custom Deno kernel
Connection Files
The console creates a kernel connection file at:Troubleshooting
Kernel not found
Kernel not found
Error:
Kernelspec 'python3' not foundSolution:- List available kernels:
jupyter kernelspec list - Install the kernel:
Kernel hangs or doesn't respond
Kernel hangs or doesn't respond
Symptoms: Commands don’t execute, no output appearsSolution:
- Press
Ctrl+Cto interrupt the kernel - Exit with
Ctrl+Dand restart the console - Check for errors:
runt console python3 --verbose
Output display issues
Output display issues
Symptoms: Rich output (plots, HTML) doesn’t displayNote: The console only displays plain text output. Rich media types (images, HTML, LaTeX) are ignored. Use
runt notebook for full output rendering.Related Commands
runt jupyter ps— List running kernelsrunt jupyter stop— Stop a kernelrunt jupyter exec— Execute code in a running kernelrunt notebook— Launch full notebook UI with rich output