Improvements to descriptions and links
This commit is contained in:
@@ -68,9 +68,22 @@
|
||||
"`modal token new` \n",
|
||||
"(Thank you Ed B. for that!)\n",
|
||||
"\n",
|
||||
"Another Windows student Minh N. mentioned you may need to use this approach, from an activated environment in the command line: \n",
|
||||
"`modal token set --token-id <your_token_id> --token-secret <your_token_secret>`\n",
|
||||
"\n",
|
||||
"Also, a student David S. mentioned the following: \n",
|
||||
"> In case anyone else using Windows hits this problem: Along with having to run `modal token new` from a command prompt, you have to move the generated token file. It will deploy the token file (.modal.toml) to your Windows profile folder. The virtual environment couldn't see that location (strangely, it couldn't even after I set environment variables for it and rebooted). I moved that token file to the folder I'm operating out of for the lab and it stopped throwing auth errors.\n",
|
||||
"\n",
|
||||
"And another Windows student (Robert M. - thank you!!) added another possible step:\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"> I could not get modal to see my tokens (resulting in an 'auth error'), even after copying the \".modal.toml\" file to the \"week8\" folder and restarting JupyterLab. The fix was to manually set the environment variables (the standard way). This config method is explained by modal on their [web site](https://modal.com/docs/reference/modal.config) \n",
|
||||
"```\n",
|
||||
"import os\n",
|
||||
"os.environ[\"MODAL_TOKEN_ID\"] = \"xxx\"\n",
|
||||
"os.environ[\"MODAL_TOKEN_SECRET\"] = \"yyy\" \n",
|
||||
"```\n",
|
||||
"\n",
|
||||
"Finally: I've also heard that in some situations, you might need to restart the Kernel of this jupyter notebook after running this. (Kernel menu >> Restart Kernel and Clear Outputs of All Cells)."
|
||||
]
|
||||
},
|
||||
@@ -81,7 +94,7 @@
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# Remove the '# ' from the next line and run the cell\n",
|
||||
"# Remove the '# ' from the next line and run the cell, or run this command without the excalamation mark from an activated command prompt\n",
|
||||
"# !modal setup"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user