- You'll need to have both python and pip installed to do this. Ask ChatGPT how if you don't. On a Mac, it's best to install python using homebrew, which itself needs to be installed from the homebrew repo on GitHub.
- Open a terminal.
- Set up and activate a virtual environment, by running (note that you may not need to install venv as it may be there already):
pip install venv
then
python -m venv llamaEnv
- Activate the virtual environment:
- On Mac, run
source llamaEnv/bin/activate
- On Windows, run
llamaEnv\Scripts\activate
- Install jupyterlab:
pip install jupyterlab
- Install ipykernel
pip install ipykernel
- Make the virtual environment available to Jupyter Labs with
python -m ipykernel install --user --name=llamaEnv
- Start Jupyter with the command
jupyter lab
- Menu -> Run -> Run All Cells.
- Once all cells have run, you'll find the chat interface at the bottom.