Improvements to explanations and minor edits

This commit is contained in:
Edward Donner
2025-01-05 12:51:20 -05:00
parent 90f3fe774a
commit e334b841ca
16 changed files with 59 additions and 26 deletions

View File

@@ -189,9 +189,18 @@
"\n",
"You can also build REST endpoints easily, although we won't cover that as we'll be calling direct from Python.\n",
"\n",
"## Important note:\n",
"## Important note for Windows people:\n",
"\n",
"On the next line, I call `modal deploy` from within Jupyter lab; I've heard that on some versions of Windows this gives a strange unicode error because modal prints emojis to the output which can't be displayed. If that happens to you, simply use an Anaconda Prompt window or a Powershell instead, with your environment activated, and type `modal deploy pricer_service` there. Follow the same approach the next time we do !modal deploy too."
"On the next line, I call `modal deploy` from within Jupyter lab; I've heard that on some versions of Windows this gives a strange unicode error because modal prints emojis to the output which can't be displayed. If that happens to you, simply use an Anaconda Prompt window or a Powershell instead, with your environment activated, and type `modal deploy pricer_service` there. Follow the same approach the next time we do `!modal deploy` too.\n",
"\n",
"As an alternative, a few students have mentioned you can run this code within Jupyter Lab if you want to run it from here:\n",
"```\n",
"# Check the default encoding\n",
"print(locale.getpreferredencoding()) # Should print 'UTF-8'\n",
"\n",
"# Ensure UTF-8 encoding\n",
"os.environ['PYTHONIOENCODING'] = 'utf-8'\n",
"```"
]
},
{