Viewing Content Runtime Settings

Problem

You want to get the language runtimes for a content item.

Solution

from posit import connect

client = connect.Client()

item = client.content.find_one(prefix="Data Science Quarterly Report")

Example output

item.py_version
>>> 3.7.2
item.quarto_version
>>> 0.9.37
item.r_version
>>> 4.1.1
library(connectapi)
client <- connect()

#### User-defined inputs ####
# 1. Specify the GUID for the content item you wish to examine.
guid <- "154bd2af-e8fa-4aa4-aab8-dcef701f4af9"
###########################

library(connectapi)
client <- connect()
item <- get_content(client, guid = guid)
item$r_version
item$quarto_version
item$py_version

Your call to get_content can specify an item by its guid, or with its name and owner_guid. You can find the content GUID in the Info panel of the content sidebar in the Connect Dashboard.

[1] "3.7.2"
[1] "0.9.37"
[1] "4.1.1"