py_print: Run a Python expression and display its print() output in R

View source: R/platform.R

py_printR Documentation

Run a Python expression and display its print() output in R

Description

Wraps a Python call with reticulate::py_capture_output() and displays the result with cat(). Useful in R Jupyter notebooks where Python print() output is not displayed automatically.

Usage

py_print(expr)

Arguments

expr

A Python expression to evaluate

Details

Note: Python logging output (e.g. from run_documentation_tests) is not captured due to reticulate limitations.


validmind documentation built on March 26, 2026, 1:06 a.m.