Skip to content

Commit

Permalink
Merge pull request #13 from transferwise/streamlit-local-runner
Browse files Browse the repository at this point in the history
fix streamlit local runner
  • Loading branch information
julianteichgraber authored Jan 23, 2024
2 parents dda2c98 + 4b0e852 commit ff4e0de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
1 change: 1 addition & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ per-file-ignores =
tw_experimentation/streamlit/pages_wrap/page1_Data_Loading.py:E501
tw_experimentation/streamlit/pages_wrap/page5_Experiment_Evaluation_Bayesian.py:E501
tw_experimentation/streamlit/Main.py:E501
tw_experimentation/streamlit/streamlit_utils.py:E402
29 changes: 14 additions & 15 deletions tw_experimentation/streamlit/streamlit_utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# import sys, os, pathlib
import sys
import os

# root_path = os.path.realpath("../..")
# sys.path.insert(0, root_path)

# sys.path.append(str(pathlib.Path().absolute()).split("/tw_experimentation")[0])
root_path = os.path.realpath("../..")
sys.path.insert(0, root_path)

from tw_experimentation.utils import ExperimentDataset
from tw_experimentation.statistical_tests import (
Expand Down Expand Up @@ -31,16 +30,6 @@
)
from tw_experimentation.bayes.bayes_test import BayesTest

import streamlit as st

import pandas as pd
from scipy.stats import chi2_contingency
from snowflake.sqlalchemy import URL
from sqlalchemy import create_engine
import json

from typing import Optional, List, Union

from tw_experimentation.constants import (
COLORSCALES,
ACCOUNT,
Expand All @@ -57,6 +46,16 @@
RESULT_TABLE,
)

import streamlit as st

import pandas as pd
from scipy.stats import chi2_contingency
from snowflake.sqlalchemy import URL
from sqlalchemy import create_engine
import json

from typing import Optional, List, Union


def fetch_data_from_table_name(warehouse: str, schema: str, table: str):
st.session_state["sf_table_import"] = "Not implemented yet"
Expand Down

0 comments on commit ff4e0de

Please sign in to comment.