Skip to content

Commit

Permalink
fix streamlit local runner
Browse files Browse the repository at this point in the history
  • Loading branch information
julianteichgraber committed Jan 23, 2024
1 parent dda2c98 commit 4b0e852
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 4b0e852

Please sign in to comment.