Skip to content

Commit

Permalink
local runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenhariri committed Jan 24, 2024
1 parent aa8aed9 commit cf7d8cc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions notebooks/note.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"outputs": [],
"source": [
"%%bash\n",
"# In case of using global env\n",
"/home/mohsen/envs/py/jupyter/bin/python -m ensurepip --default-pip\n",
"/home/mohsen/envs/py/jupyter/bin/python -m pip install --upgrade pip\n",
"/home/mohsen/envs/py/jupyter/bin/python -m pip install numpy"
Expand All @@ -18,6 +19,7 @@
"metadata": {},
"outputs": [],
"source": [
"# In case of using global env\n",
"import os\n",
"import sys\n",
"current_directory = os.getcwd()\n",
Expand All @@ -27,6 +29,17 @@
"print(\"python path:\", sys.executable)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%%bash\n",
"# In case of using the current project env\n",
"pip install --upgrade pip"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit cf7d8cc

Please sign in to comment.