Skip to content

Commit ba11529

Browse files
authored
Refactor requirements section in README.md
Removed duplicate requirements section and retained the updated version.
1 parent b7c4c5a commit ba11529

File tree

1 file changed

+34
-33
lines changed

1 file changed

+34
-33
lines changed

README.md

Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,40 @@ By the end of the book, you’ll have the skills to design scalable, testable LL
6161

6262
</details>
6363

64+
<details open>
65+
<summary><h2>Requirements for this book</summary>
66+
67+
Clone the repository
68+
69+
```bash
70+
git clone https://github.com/PacktPublishing/Building-Natural-Language-Pipelines.git
71+
72+
cd Building-Natural-Language-Pipelines/
73+
74+
```
75+
76+
Each chapter contains a `pyproject.toml` file with the folder's dependencies. **(Recommended) Open each folder in a new VS Code window.**
77+
78+
1. **Install [uv](https://docs.astral.sh/uv/getting-started/installation/):**
79+
```sh
80+
pip install uv
81+
```
82+
2. **Change directories into the folder**
83+
3. **Install dependencies:**
84+
```sh
85+
uv sync
86+
```
87+
4. **Activate the virtual environment:**
88+
```sh
89+
source .venv/bin/activate
90+
```
91+
5. **Select the virtual environment as the Jupyter kernel:**
92+
- Open any notebook.
93+
- Click the kernel picker (top right) and select the `.venv` environment.
94+
95+
</details>
96+
97+
6498
<details open>
6599
<summary><h2>Chapters</summary>
66100

@@ -128,39 +162,6 @@ By the end of the book, you’ll have the skills to design scalable, testable LL
128162
</details>
129163

130164

131-
<details open>
132-
<summary><h2>Requirements for this book</summary>
133-
134-
Clone the repository
135-
136-
```bash
137-
git clone https://github.com/PacktPublishing/Building-Natural-Language-Pipelines.git
138-
139-
cd Building-Natural-Language-Pipelines/
140-
141-
```
142-
143-
Each chapter contains a `pyproject.toml` file with the folder's dependencies. **(Recommended) Open each folder in a new VS Code window.**
144-
145-
1. **Install [uv](https://docs.astral.sh/uv/getting-started/installation/):**
146-
```sh
147-
pip install uv
148-
```
149-
2. **Change directories into the folder**
150-
3. **Install dependencies:**
151-
```sh
152-
uv sync
153-
```
154-
4. **Activate the virtual environment:**
155-
```sh
156-
source .venv/bin/activate
157-
```
158-
5. **Select the virtual environment as the Jupyter kernel:**
159-
- Open any notebook.
160-
- Click the kernel picker (top right) and select the `.venv` environment.
161-
162-
</details>
163-
164165

165166

166167
<details>

0 commit comments

Comments
 (0)