import subprocess
# Launch R script in background, detached
proc = subprocess.Popen(
["conda", "run", "-n", "RtorchGIS", "Rscript", "shiny-server.R"]
)
import os
prefix = os.environ.get("JUPYTERHUB_SERVICE_PREFIX", "/")
from IPython.display import IFrame
IFrame(f"{prefix}proxy/8050/", width="100%", height="1250")