rocker-org / rocker-versioned2

Run current & prior versions of R using docker. rocker/r-ver, rocker/rstudio, rocker/shiny, rocker/tidyverse, and so on.
https://rocker-project.org
GNU General Public License v2.0
390 stars 163 forks source link

Github Copilot has been disabled by the administrator: Allow user to change? #826

Closed ColinConwell closed 3 weeks ago

ColinConwell commented 3 weeks ago

Container image name

rocker/ml_verse:latest

What operating system related to this question?

Ubuntu 22.04.3 LTS

Question

In Tools > Global Options... > CoPilot, it says:

GitHub CoPilot integration has been disabled by the administrator?

Is this a setting that can be easily changed?

It would be a major advantage to allow the user to sign-in and use CoPilot in rocker distributons.

Thanks in advance!

eitsupi commented 3 weeks ago

See https://docs.posit.co/ide/user/ide/guide/tools/copilot.html#setup

With RStudio Server and Posit Workbench, GitHub Copilot must first be explicitly enabled by a system administrator. This can be done by adding the line:

copilot-enabled=1

to /etc/rstudio/rsession.conf.

I assume you can add this. I don't see any possibility to enable this by default in this repository.

ColinConwell commented 3 weeks ago

A quick follow-up that this issue from RStudio suggests this is on RStudio's side: https://github.com/rstudio/rstudio/issues/13612

Apparently, this setting can be overridden on the server by adding: copilot-enabled=1 to rsession.conf

Is that file constructed somewhere in the Dockerfile? or something that is easy to edit?

eitsupi commented 3 weeks ago

Is that file constructed somewhere in the Dockerfile? or something that is easy to edit?

I don't think there's anything special here. It's just a default.

benz0li commented 3 weeks ago

@ColinConwell You may be interested in b-data's/my JupyterLab R docker stack:

  1. Provides RStudio Server OSE (images with R versions ≥ 4.4.0)
  2. Has copilot-enabled=1 set in /etc/rstudio/rsession.conf