Additional comments and refinements
This commit is contained in:
@@ -48,21 +48,26 @@
|
||||
"# The Environment Name should be: llms\n",
|
||||
"\n",
|
||||
"import os\n",
|
||||
"conda_name, venv_name = \"\", \"\"\n",
|
||||
"\n",
|
||||
"conda_prefix = os.environ.get('CONDA_PREFIX')\n",
|
||||
"if conda_prefix:\n",
|
||||
" print(\"Anaconda environment is active:\")\n",
|
||||
" print(f\"Environment Path: {conda_prefix}\")\n",
|
||||
" print(f\"Environment Name: {os.path.basename(conda_prefix)}\")\n",
|
||||
" conda_name = os.path.basename(conda_prefix)\n",
|
||||
" print(f\"Environment Name: {conda_name}\")\n",
|
||||
"\n",
|
||||
"virtual_env = os.environ.get('VIRTUAL_ENV')\n",
|
||||
"if virtual_env:\n",
|
||||
" print(\"Virtualenv is active:\")\n",
|
||||
" print(f\"Environment Path: {virtual_env}\")\n",
|
||||
" print(f\"Environment Name: {os.path.basename(virtual_env)}\")\n",
|
||||
" venv_name = os.path.basename(virtual_env)\n",
|
||||
" print(f\"Environment Name: {venv_name}\")\n",
|
||||
"\n",
|
||||
"if not conda_prefix and not virtual_env:\n",
|
||||
" print(\"Neither Anaconda nor Virtualenv seems to be active. Did you start jupyter lab in an Activated environment? See Setup Part 5.\")"
|
||||
"if conda_name != \"llms\" and virtual_env != \"llms\":\n",
|
||||
" print(\"Neither Anaconda nor Virtualenv seem to be activated with the expected name 'llms'\")\n",
|
||||
" print(\"Did you run 'jupyter lab' from an activated environment with (llms) showing on the command line?\")\n",
|
||||
" print(\"If in doubt, close down all jupyter lab, and follow Part 5 in the SETUP-PC or SETUP-mac guide.\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user