Skip to content

Commit 8bb70aa

Browse files
authored
Merge pull request #20 from NVIDIA-AI-Blueprints/code-merge-private-repo
project root path for brev
2 parents df1f46b + dca2459 commit 8bb70aa

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

notebooks/ai-model-distillation-financial-data.ipynb

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -90,27 +90,31 @@
9090
"git-lfs pull"
9191
]
9292
},
93+
{
94+
"cell_type": "markdown",
95+
"metadata": {},
96+
"source": [
97+
"Set Project Root\n",
98+
"\n",
99+
"> **Note for Brev Users:** Only change `project_root` if you cloned the repository to a custom location or see path-related errors. Otherwise, the default setup (using `notebook_dir.parent`) should work correctly."
100+
]
101+
},
93102
{
94103
"cell_type": "code",
95-
"execution_count": 1,
104+
"execution_count": null,
96105
"id": "cfc857af",
97106
"metadata": {},
98-
"outputs": [
99-
{
100-
"name": "stdout",
101-
"output_type": "stream",
102-
"text": [
103-
"Updated PATH to include: /home/shadeform/.local/bin\n",
104-
"Working directory changed to: /home/shadeform/ai-model-distillation-for-financial-data\n"
105-
]
106-
}
107-
],
107+
"outputs": [],
108108
"source": [
109109
"from pathlib import Path\n",
110110
"import os\n",
111111
"notebook_dir = Path.cwd()\n",
112112
"notebook_dir = notebook_dir.parent\n",
113-
"project_root = notebook_dir \n",
113+
"# For Brev Users\n",
114+
"project_root = notebook_dir / 'ai-model-distillation-for-financial-data'\n",
115+
"# For Local Users, uncomment the following line\n",
116+
"# project_root = notebook_dir \n",
117+
"\n",
114118
"local_bin = os.path.expanduser(\"~/.local/bin\")\n",
115119
"os.environ[\"PATH\"] = f\"{local_bin}:{os.environ['PATH']}\"\n",
116120
"print(f\"Updated PATH to include: {local_bin}\")\n",

0 commit comments

Comments
 (0)