Editor Python and R setup
Rime Editor uses the same interpreter model as the CLI. Python and R nodes run through configured local interpreters; SQL and JavaScript run through the built-in runtime paths.
Resolution Order
Section titled “Resolution Order”When the editor runs a DAG, Python and R interpreter paths resolve in this order:
- project/editor selection
- DAG
interpreters:block - environment variables such as
RIME_PYTHON_BINandRIME_RSCRIPT_BIN - system fallback (
python3,Rscript)
The important rule is that interpreter choice is execution configuration, not pipeline structure. The DAG can declare defaults, but local machines and CI can override them.
specification_version: "2.1"
interpreters: python: .venv/bin/python r: /usr/local/bin/RscriptWhat The Editor Should Show
Section titled “What The Editor Should Show”The environment surface should stay lightweight:
- selected Python path
- selected R path
- automatic status after a path changes or before a DAG run
- missing package messages when a script node cannot run
- raw interpreter output only when something fails
There should not be a separate “probe” ritual for normal use. If the user tries to run the DAG with default paths, the editor can check automatically and surface the result in context.
Script Nodes
Section titled “Script Nodes”Language nodes declare named data slots in YAML:
- id: features kind: python source: scripts/features.py in: cohort: repeat_visitors threshold: params.thresholdThe editor should render cohort as an input edge and keep scalar params.* bindings visible in the spec/config surface.
CLI Equivalent
Section titled “CLI Equivalent”export RIME_PYTHON_BIN=.venv/bin/pythonexport RIME_RSCRIPT_BIN=/usr/local/bin/Rscriptrime run pipeline.dag.yamlFor runtime behavior, see Polyglot runtime.