diff --git a/examples/hds/Example_Data_Anonymization.ipynb b/examples/hds/Example_Data_Anonymization.ipynb index 0c1815c5..efb50a30 100644 --- a/examples/hds/Example_Data_Anonymization.ipynb +++ b/examples/hds/Example_Data_Anonymization.ipynb @@ -27,10 +27,11 @@ "\n", "import os \n", "import sys\n", + "import plotly.io as pio\n", + "pio.renderers.default = \"notebook_connected\"\n", "\n", - "current_dir = os.getcwd() \n", - "base_dir = os.path.dirname(os.path.dirname(current_dir)) \n", - "sys.path.append(base_dir) " + "sys.path.append(\"../../../\")\n", + "sys.path.append('../../python')" ] }, { @@ -60,8 +61,7 @@ "metadata": {}, "outputs": [], "source": [ - "json_file_path = os.path.join(base_dir, 'data', 'SampleHDS.json') \n", - "pl.read_ndjson(json_file_path)" + "pl.read_ndjson('../../../../data/SampleHDS.json')" ] }, { @@ -78,8 +78,7 @@ "metadata": {}, "outputs": [], "source": [ - "hds_path = os.path.join(base_dir, 'data') \n", - "anon = DataAnonymization(hds_folder=hds_path, sample_percentage_schema_inferencing=0.99)" + "anon = DataAnonymization(hds_folder='../../../../data/')" ] }, { @@ -160,7 +159,7 @@ "outputs": [], "source": [ "anon = DataAnonymization(\n", - " hds_folder=hds_path,\n", + " hds_folder=\"../../../../data/\",\n", " mask_ih_names=False,\n", " mask_outcome_values=False,\n", " mask_context_key_values=False,\n",