From 246c81cd0c388b4c65924a712bc56c1b13bf3994 Mon Sep 17 00:00:00 2001 From: op07n <39182105+op07n@users.noreply.github.com> Date: Sun, 19 Jan 2020 00:06:39 +0100 Subject: [PATCH] Create streamlit_call.py --- .binder/streamlit_call.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .binder/streamlit_call.py diff --git a/.binder/streamlit_call.py b/.binder/streamlit_call.py new file mode 100644 index 0000000..a2f256a --- /dev/null +++ b/.binder/streamlit_call.py @@ -0,0 +1,6 @@ +from subprocess import Popen + + +def load_jupyter_server_extension(nbapp): + """serve the bokeh-app directory with bokeh server""" + Popen(["streamlit", "st_runner.py", "apps", "--server.enableCORS=False", "--browser.gatherUsageStats=False"])