monorail-pcb/Libraries/JLCPCB-Kicad-Library-main/venv_setup.md

28 lines
1 KiB
Markdown
Raw Permalink Normal View History

2025-06-13 01:24:58 +02:00
## Setting up a Python Virtual Environment (.venv) with Jupyter Notebooks in VSCode
### Step 1: Install Python and VSCode
1. Install Python https://www.python.org/downloads/
2. Install VSCode https://code.visualstudio.com/Download
### Step 2: Install Required Extensions in VSCode
1. Open VSCode.
2. Install the "Python" extension by Microsoft.
3. Install the "Jupyter" extension by Microsoft.
### Step 3: Create a Virtual Environment (.venv)
1. Open the `libraryCreatorScript.ipynb` file in VSCode.
2. Select a kernel using the kernel picker in the top right.
![Select a kernel using the kernel picker in the top right](images/native-kernel-picker.avif)
3. Click "Select another Kernel".
4. Click "Python Environments".
5. Click "Create Python Environment".
6. Click "Venv".
7. Click "Create New".
### Step 4: Verify the Virtual Environment
Run the first cell on `libraryCreatorScript.ipynb` and it should download all the needed packages without any errors in less than 30s.
![alt text](images/native-code-cells-03.avif)