In [1]:
import subprocess

# Launch R script in background, detached
proc = subprocess.Popen(
    ["conda", "run", "-n", "RtorchGIS", "Rscript", "shiny-server.R"]
)
In [9]:
import os
prefix = os.environ.get("JUPYTERHUB_SERVICE_PREFIX", "/")

from IPython.display import IFrame
IFrame(f"{prefix}proxy/8050/", width="100%", height="1250")
Out[9]:
In [ ]: