Jupyter Notebook
Installation
With pip
pip install notebook
Python Virtual Environment
With Python Venv
mkdir my-rag
cd my-rag
python -m venv .venv
source .venv/bin/activate
(my-rag)> pip install --upgrade pip
(my-rag)> pip install notebook
(my-rag)> jupyter notebook
With Conda
conda create -n my-rag python=3.10
conda activate my-rag
(my-rag)> pip install --upgrade pip
(my-rag)> pip install notebook
(my-rag)> jupyter notebook
UI 可切換不同虛擬環境(需要先建立不同的 ipykernel)
mkdir my-rag
cd my-rag
python -m venv .venv
source .venv/bin/activate
(my-rag)> pip install --upgrade pip
(my-rag)> pip install ipykernel
(my-rag)> ipython kernel install --user --name="my-rag-kernel"
(my-rag)> jupyter notebook
Resources
- Online Test
- nbviewer - A simple way to share Jupyter Notebooks
CoLab by Google
- Google Colab is Jupyter Notebooks that are hosted by Google’s Colaboratory
- Overview of Colaboratory Features
- Installing and using Python libraries in Colab
- Using Google Colab with GitHub