NOTE These pre-reqs will get you set up to use both the C# and Python notebooks within VSCode. If you are a pure Python user, feel free to use whichever Jupyter environment you feel most comfortable with.
The following software needs to be installed on your computer:
- ✅ Visual Studio Code
- ✅ The latest .Net 7.0 SDK
- ✅ Polyglot Notebooks for VS Code
When the three items above are installed, the code notebooks should be formatted nicely with code blocks that have a little
Separate from installing software, you will need to have an API key to access the OpenAI models.
- ✅ OpenAI key via OpenAI or Azure OpenAI Service. Access your API key on OpenAI with these instructions, or on Azure Open AI Service with these instructions.
📘 After you have achieved all the 👆 prerequisites, open the notebooks in this repo from within Visual Studio Code and you are ready to to go!
First, here are a few definitions of concepts you will need to move forward:
- "GitHub repo" refers to the web page you're currently visiting
- "Visual Studio Code" is an application that runs on your computer. It lets you edit the various text files that create runnable software systems.
- "Visual Studio Code Extensions" are special "apps" that you can install into Visual Studio Code to extend its capabilities.
- "Polyglot Notebooks for VS Code" is a VS Code Extension — it's necessary for displaying the various
.ipynb
files within VS Code. - "Download the GitHub repo locally" means using GitHub.com to transfer the files being managed by GitHub as a ZIP file downloaded to your computer.
- "OpenAI or Azure OpenAI Service key" refers to a secret credential that only you have access to after you've signed up for either service.
Next, because you're using GitHub it's useful to know the following:
- "Download the GitHub repo again" is something you will need to do if you used a ZIP file download because the directory does not stay in sync with what's on GitHub.com.
- "Clone the GitHub repo" means keeping a local copy of what's up on GitHub generally in sync with your local copy. If you're feeling ambitious to do so, instructions are here.
We're going to go step-by-step through what you'll need to do:
- Download and install Visual Studio Code
- Download and install .Net 7.0 SDK
- Install Polyglot Notebooks for VS Code extension by hitting the green "Install" button. This will launch Visual Studio Code and put it in the right place.
- Download the GitHub repo locally by clicking on the big green "<>Code" button and selecting "Download ZIP" or by going here.
- Unzip the file and you should have a brand new folder of files.
- In Visual Studio Code choose "File > Open Folder ..." and select the folder you've freshly unzipped
- Select the
notebook.ipynb
that's inside any of the recipe folder. The file should display like a nicely formatted document. - Be sure to have your OpenAI or Azure OpenAI Service key ready. You can access your API key on OpenAI with these instructions, or on Azure Open AI Service with these instructions.
🎉 You are now done with your set up to run Semantic Kernel completely from within VS Code's notebooks. There's no need to view files from GitHub.com anymore — you should be viewing them locally from your computer on VS Code. Good luck!