We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3c6e224 + 72e1118 commit 80c1db1Copy full SHA for 80c1db1
jupyter_rsession_proxy/__init__.py
@@ -6,6 +6,7 @@
6
import tempfile
7
from textwrap import dedent
8
9
+
10
def get_rstudio_executable(prog):
11
# Find prog in known locations
12
other_paths = [
@@ -55,12 +56,15 @@ def db_config():
55
56
return db_config_name
57
58
def _get_cmd(port):
59
+ ntf = tempfile.NamedTemporaryFile()
60
cmd = [
61
get_rstudio_executable('rserver'),
62
'--auth-none=1',
63
'--www-frame-origin=same',
64
'--www-port=' + str(port),
- '--www-verify-user-agent=0'
65
+ '--www-verify-user-agent=0',
66
+ '--secure-cookie-key-file=' + ntf.name,
67
+ '--server-user=' + getpass.getuser(),
68
]
69
70
# Add additional options for RStudio >= 1.4.x. Since we cannot
0 commit comments