You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[MLOps: Continuous delivery and automation pipelines in machine learning](https://cloud.google.com/architecture/mlops-continuous-delivery-and-automation-pipelines-in-machine-learning)
26
27
-[The Big Book of MLOps](https://www.databricks.com/sites/default/files/2023-10/2023-10-eb-big-book-of-mlops-2nd-edition-v2-102723-final.pdf)
Copy file name to clipboardExpand all lines: docs/1. Initializing/1.0. System.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ While [JupyterLab](https://jupyterlab.readthedocs.io/en/latest/) is an acceptabl
14
14
15
15
## Are additional software installations required?
16
16
17
-
Engaging with this course material necessitates installing several key software packages, including Python, Poetry, git, and VS Code. These tools form the backbone of your development workflow:
17
+
Engaging with this course material necessitates installing several key software packages, including Python, uv, git, and VS Code. These tools form the backbone of your development workflow:
18
18
19
19
-**Python** is indispensable for all course-related coding activities.
20
-
-**Poetry** offers an efficient way to manage Python package dependencies.
20
+
-**uv** offers an efficient way to manage Python package dependencies.
21
21
-**Git** is crucial for version control and collaboration.
22
22
-**VS Code** is recommended for its integrated development environment (IDE) capabilities, although alternatives may be used based on personal preference or specific needs.
Copy file name to clipboardExpand all lines: docs/1. Initializing/1.3. Poetry.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,14 +126,14 @@ These configurations ensure that Poetry creates virtual environments directly wi
126
126
127
127
## How can you install dependencies for your project with Poetry?
128
128
129
-
Poetry differentiates between main (production) and development dependencies, offering an organized approach to dependency management. To add dependencies, use the following commands:
129
+
Uv differentiates between main (production) and development dependencies, offering an organized approach to dependency management. To add dependencies, use the following commands:
130
130
131
131
```bash
132
132
# For main dependencies
133
-
$ poetry add pandas scikit-learn
133
+
$ uv add pandas scikit-learn
134
134
135
135
# For development dependencies
136
-
$ poetry add -G dev ipykernel
136
+
$ uv add --group dev ipykernel
137
137
```
138
138
139
139
Executing these commands updates the `pyproject.toml` file, accurately managing and versioning your project's dependencies.
@@ -144,9 +144,9 @@ In production, you can decide to install only the main dependencies using [this
144
144
poetry install --only main
145
145
```
146
146
147
-
## What is the difference between main and dev dependencies in Poetry?
147
+
## What is the difference between main and dev dependencies in uv?
148
148
149
-
In Poetry, dependencies are divided into two types: main dependencies and development (dev) dependencies.
149
+
In uv, dependencies are divided into two types: main dependencies and development (dev) dependencies.
150
150
151
151
**Main Dependencies**: These are essential for your project's production environment—your application can't run without them. For example, libraries like Pandas or XGBoost would be main dependencies for an MLOps project.
Copy file name to clipboardExpand all lines: docs/1. Initializing/1.4. git.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ When using Git, it's important to selectively track files. Consider the followin
49
49
50
50
-**Exclude Secrets**: Sensitive data, such as API keys and passwords, should never be committed to your repository.
51
51
-**Manage Large Files**: For files exceeding 100MB (e.g., dataset files), use Git Large File Storage ([git-lfs](https://git-lfs.github.com/)) instead of directly committing them to your Git repository.
52
-
-**Omit Cache Files**: Do not track temporary or environment-specific files (e.g., `.venv`, `poetry.lock`, log files) that don't contribute to the project's primary function.
52
+
-**Omit Cache Files**: Do not track temporary or environment-specific files (e.g., `.venv`, `mlruns`, log files) that don't contribute to the project's primary function.
53
53
54
54
To exclude certain files and directories from being tracked, create a `.gitignore` file in your project's root directory. This file should list patterns to match filenames you wish to exclude, for example:
55
55
Collapse file: docs/1. Initializing/1.6. VS Code.md
Copy file name to clipboardExpand all lines: docs/1. Initializing/1.6. VS Code.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -238,19 +238,19 @@ You can find below some settings for configuring VS Code. Each setting is annota
238
238
}
239
239
```
240
240
241
-
## How to configure VS Code for using the [Jupyter Extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) with [Poetry](https://python-poetry.org/)?
241
+
## How to configure VS Code for using the [Jupyter Extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) with [uv](https://docs.astral.sh/uv/)?
242
242
243
-
To configure VS Code for using the [Jupyter Extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) with [Poetry](https://python-poetry.org/), follow these steps to ensure that your Poetry-managed virtual environment is recognized within VS Code. This allows you to use the Jupyter Extension seamlessly with the Python interpreter provided by Poetry.
243
+
To configure VS Code for using the [Jupyter Extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) with [uv](https://docs.astral.sh/uv/), follow these steps to ensure that your uv-managed virtual environment is recognized within VS Code. This allows you to use the Jupyter Extension seamlessly with the Python interpreter provided by uv.
244
244
245
245
1.**Install the Jupyter Extension**: First, ensure that the [Jupyter Extension](https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter) is installed in VS Code. You can find and install this extension from the [VS Code Marketplace](https://marketplace.visualstudio.com/VSCode).
246
-
2.**Open Your Project in VS Code**: Open your project folder in VS Code. If you've just created a new Poetry project, this will be the directory containing your `pyproject.toml` file.
247
-
3.**Select Python Interpreter**: To make VS Code use the Python interpreter from your Poetry environment:
246
+
2.**Open Your Project in VS Code**: Open your project folder in VS Code. If you've just created a new uv project, this will be the directory containing your `pyproject.toml` file.
247
+
3.**Select Python Interpreter**: To make VS Code use the Python interpreter from your uv environment:
248
248
- Open the Command Palette (`Ctrl+Shift+P` on Windows/Linux, `Cmd+Shift+P` on macOS).
249
249
- Type `Python: Select Interpreter` and select it.
250
-
- Look for the interpreter that corresponds to your Poetry environment. It will typically be located under the `.venv` path within your project directory or listed as a virtual environment with your project's name.
250
+
- Look for the interpreter that corresponds to your uv environment. It will typically be located under the `.venv` path within your project directory or listed as a virtual environment with your project's name.
251
251
- Select the appropriate interpreter.
252
-
4.**Verify Jupyter Notebook Configuration**: Create a new Jupyter notebook in VS Code (`*.ipynb` file) and verify that the cells execute using the Python interpreter from your Poetry environment. You can check the upper-right corner of the notebook interface to see which interpreter is currently active.
253
-
5.**Install Necessary Libraries**: If you need additional Python libraries that are not yet part of your Poetry project, you can add them by running `poetry add <library-name>` in your terminal or command prompt. This ensures that all dependencies are managed by Poetry and available in the notebook.
252
+
4.**Verify Jupyter Notebook Configuration**: Create a new Jupyter notebook in VS Code (`*.ipynb` file) and verify that the cells execute using the Python interpreter from your uv environment. You can check the upper-right corner of the notebook interface to see which interpreter is currently active.
253
+
5.**Install Necessary Libraries**: If you need additional Python libraries that are not yet part of your uv project, you can add them by running `uv add <library-name>` in your terminal or command prompt. This ensures that all dependencies are managed by uv and available in the notebook.
Copy file name to clipboardExpand all lines: docs/2. Prototyping/2.0. Notebooks.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ As an alternative to notebooks, consider using the [Python Interactive Window](h
28
28
29
29
Using notebooks in the early stages of development offers many advantages; however, they are not well-suited for production environments due to several limitations:
30
30
31
-
-**Lack of Integration**: Notebooks often do not integrate seamlessly with tools commonly used in the Python software development ecosystem, such as testing frameworks (pytest), linting tools (ruff), and package managers (poetry).
31
+
-**Lack of Integration**: Notebooks often do not integrate seamlessly with tools commonly used in the Python software development ecosystem, such as testing frameworks (pytest), linting tools (ruff), and package managers (uv).
32
32
-**Mixed Content**: The intermingling of code, output, and narrative in a single document can complicate version control and maintenance, especially with complex projects.
33
33
-**Non-Sequential Flow**: Notebooks do not enforce a linear execution order, which can lead to confusion and errors if cells are run out of sequence.
34
34
-**Lack of Reusability**: The format of notebooks does not naturally encourage the development of reusable and modular code, such as functions, classes, or packages.
This command tells poetry to download and install these packages, along with their dependencies, into your project environment, ensuring version compatibility and easy package management.
42
+
This command tells uv to download and install these packages, along with their dependencies, into your project environment, ensuring version compatibility and easy package management.
43
43
44
44
## How should you organize your imports to facilitate your work?
0 commit comments