HOWTO Tools
Installing Python and Jupyter Notebook
You can experiment with the code online without installation using
Google CoLab. If additional packages are needed then
I will provide a code block with a commented out pip install instruction you can use.
To work on assignments, you can use one of several environments:
- Use the online service Google CoLab. No additional installations are necessary.
- Install Visual Studio Code. It will prompt you to install all needed software when you open a notebook file.
Setting up the Environment with Conda
This uses conda to manage virtual environments.
- Install Miniconda.
- Download environment.yml
-
From the VS Code terminal, run these commands from the repository root:
conda env create -f environment.yml conda activate CS7320-AI
Then configure VS Code:
- Install Microsoft’s Python and Jupyter extensions.
- Press Ctrl+Shift+P.
- Select Python: Select Interpreter.
- Choose CS7320-AI.
- For a notebook, click Select Kernel in the upper-right and choose CS7320-AI. If you cannot find it then you probably need to restart VS Code.
Optional packages can be added afterward:
- Gymnasium and Lunar Lander
conda env update -n CS7320-AI -f environments/gymnasium.yml - Local LLM examples
conda env update -n CS7320-AI -f environments/llm.yml
Learning Python and Jupyter Notebook
If you are not familiar with Python, then you should work through one of the many Python tutorials (e.g., this tutorial) to learn the basics about Python and the packages numpy and pandas. Some code examples that help with the assignments are available here.
How to use Jupyter notebooks is covered in many online tutorials like the Jupyter notebook tutorial.
License
All code and documents in this repository are provided under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) License.