I have a file script.py
with code that opens a bokeh
server like so:
def start_bokeh_server():
subprocess.Popen(
["bokeh", "serve",
"--show", "app.py",
"--port", port,
"--args", args])
In app.py
, I would like to read in args
.
In the documentation it says that it is possible to access the content of args
inside the bokeh app with sys.argv
.
However, with using subprocess
, sys.argv
returns only the args to script.py
, namely only the path to it.
Is it possible to view the args of the subprocess bokeh call inside the app?
Thanks a lot