|
1 | | -# 10 Days of Code with AI |
| 1 | +# 10 Días de Código con IA |
2 | 2 |
|
3 | | -This repository contains the course notes and code examples of the course [10 Days of Python with AI]. The course is aimed for curious Vibe coders with no programming background who want to have a wholistic view of coding and ai technologies and the skills to debug, specify and scrutinise code that is mainly produced with AI. |
| 3 | +Este repositorio contiene las notas del curso y los ejemplos de código del curso [10 Días de Python con IA]. El curso está dirigido a programadores curiosos de Vibe sin experiencia en programación que desean tener una visión holística de la codificación y las tecnologías de IA y las habilidades para depurar, especificar y examinar el código que se produce principalmente con IA. |
4 | 4 |
|
5 | | -The course is mainly produce to use [Visual Studio Code] and [Github Copilot]; and a big part of it uses python for automatization, API calls, web programming, AI programming and more. |
| 5 | +El curso está producido principalmente para usar [Visual Studio Code] y [Github Copilot]; y una gran parte de él usa python para automatización, llamadas a API, programación web, programación de IA y más. |
6 | 6 |
|
7 | | -The course notes themselves may be found in [10 Days of Code with AI course notes] and the code examples in [git hub code examples]. Once [Visual Studio Code] and [python] are installed in your machine, you can run the examples by simply typing in your terminal: |
| 7 | +Las notas del curso se pueden encontrar en [notas del curso 10 Días de Código con IA] y los ejemplos de código en [ejemplos de código de git hub]. Una vez que [Visual Studio Code] y [python] estén instalados en su máquina, puede ejecutar los ejemplos simplemente escribiendo en su terminal: |
8 | 8 |
|
9 | 9 | ```python |
10 | | -python <filename>.py |
| 10 | +python <nombre_archivo>.py |
11 | 11 | ``` |
12 | 12 |
|
13 | | -## Cloning the Repository |
| 13 | +## Clonando el Repositorio |
14 | 14 |
|
15 | | -If you wish you could install git on your vs code and clone this repository in your local machine. |
| 15 | +Si lo desea, puede instalar git en su vs code y clonar este repositorio en su máquina local. |
16 | 16 |
|
17 | | -### Installing Bash in Visual Studio Code |
| 17 | +### Instalando Bash en Visual Studio Code |
18 | 18 |
|
19 | | -If you're on Windows and want to use Bash in VS Code, you can install [Git for Windows](https://git-scm.com/download/win), which includes Git Bash. |
| 19 | +Si está en Windows y desea usar Bash en VS Code, puede instalar [Git para Windows](https://git-scm.com/download/win), que incluye Git Bash. |
20 | 20 |
|
21 | | -1. Download and install Git for Windows. |
22 | | -2. After installation, open VS Code. |
23 | | -3. Press <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> and type `Terminal: Select Default Profile`. |
24 | | -4. Choose `Git Bash` from the list. |
| 21 | +1. Descargue e instale Git para Windows. |
| 22 | +2. Después de la instalación, abra VS Code. |
| 23 | +3. Presione <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>P</kbd> y escriba `Terminal: Select Default Profile`. |
| 24 | +4. Elija `Git Bash` de la lista. |
25 | 25 |
|
26 | | -Now, when you open a new terminal in VS Code, it will use Bash. |
| 26 | +Ahora, cuando abra una nueva terminal en VS Code, usará Bash. |
27 | 27 |
|
28 | | -> **Note:** Installing Git for Windows will also install Git Bash. You do not need to install Git separately—Git Bash is included as part of the Git installation package. |
| 28 | +> **Nota:** La instalación de Git para Windows también instalará Git Bash. No necesita instalar Git por separado—Git Bash se incluye como parte del paquete de instalación de Git. |
29 | 29 |
|
30 | | -### Create a virtual environmenta and activate |
31 | | -A **virtual environment** in Python is an isolated workspace that allows you to install and manage packages separately from your global Python installation. This means each project can have its own dependencies, versions, and settings without interfering with other projects or the system Python. |
| 30 | +### Crear un entorno virtual y activarlo |
| 31 | +Un **entorno virtual** en Python es un espacio de trabajo aislado que le permite instalar y administrar paquetes por separado de su instalación global de Python. Esto significa que cada proyecto puede tener sus propias dependencias, versiones y configuraciones sin interferir con otros proyectos o el Python del sistema. |
32 | 32 |
|
33 | | -**Why use a virtual environment?** |
| 33 | +**¿Por qué usar un entorno virtual?** |
34 | 34 |
|
35 | | -- Isolation: Keeps project dependencies separate, avoiding conflicts between packages required by different projects. |
36 | | -- Reproducibility: Makes it easier to share your project with others, since you can specify exactly which packages and versions are needed. |
37 | | -Safety: Prevents accidental changes to system-wide Python packages. |
| 35 | +- Aislamiento: Mantiene las dependencias del proyecto separadas, evitando conflictos entre los paquetes requeridos por diferentes proyectos. |
| 36 | +- Reproducibilidad: Facilita compartir su proyecto con otros, ya que puede especificar exactamente qué paquetes y versiones se necesitan. |
| 37 | +- Seguridad: Evita cambios accidentales en los paquetes de Python de todo el sistema. |
38 | 38 |
|
39 | | -Typical workflow: |
40 | | -- Create a virtual environment for your project. |
41 | | -- Activate it before working. |
42 | | -- Install packages using pip—these go only into the virtual environment. |
43 | | -- Deactivate when done. |
| 39 | +Flujo de trabajo típico: |
| 40 | +- Crear un entorno virtual para su proyecto. |
| 41 | +- Activarlo antes de trabajar. |
| 42 | +- Instalar paquetes usando pip—estos solo van al entorno virtual. |
| 43 | +- Desactivar cuando haya terminado. |
44 | 44 |
|
45 | | -This approach is especially useful in collaborative or production settings, ensuring consistency and minimizing dependency issues. |
| 45 | +Este enfoque es especialmente útil en entornos colaborativos o de producción, asegurando la consistencia y minimizando los problemas de dependencia. |
46 | 46 |
|
47 | | -To create a Python virtual environment, run the following command in your terminal: |
| 47 | +Para crear un entorno virtual de Python, ejecute el siguiente comando en su terminal: |
48 | 48 |
|
49 | 49 | ```bash |
50 | 50 | python -m venv venv |
51 | 51 | ``` |
52 | 52 |
|
53 | | -This will create a new directory called `venv` containing the virtual environment. |
| 53 | +Esto creará un nuevo directorio llamado `venv` que contiene el entorno virtual. |
54 | 54 |
|
55 | | -To activate the virtual environment: |
| 55 | +Para activar el entorno virtual: |
56 | 56 |
|
57 | | -- On Windows: |
| 57 | +- En Windows: |
58 | 58 | ```bash |
59 | 59 | .\venv\Scripts\activate |
60 | 60 | ``` |
61 | | -- On macOS/Linux/bash terminal: |
| 61 | +- En macOS/Linux/terminal bash: |
62 | 62 | ```bash |
63 | 63 | source venv/bin/activate |
64 | 64 | ``` |
65 | 65 |
|
66 | | -Once activated, you can install packages using `pip` and they will be isolated to this environment. |
| 66 | +Una vez activado, puede instalar paquetes usando `pip` y estarán aislados en este entorno. |
67 | 67 |
|
68 | | -To deactivate the Python virtual environment, simply run: |
| 68 | +Para desactivar el entorno virtual de Python, simplemente ejecute: |
69 | 69 |
|
70 | 70 | ```bash |
71 | 71 | deactivate |
72 | 72 | ``` |
73 | 73 |
|
74 | | -This will return your terminal to the global Python environment. |
| 74 | +Esto devolverá su terminal al entorno global de Python. |
75 | 75 |
|
76 | 76 |
|
77 | | -### Clone this repository |
| 77 | +### Clonar este repositorio |
78 | 78 |
|
79 | | -To clone this repository to your local machine, open your terminal and run: |
| 79 | +Para clonar este repositorio en su máquina local, abra su terminal y ejecute: |
80 | 80 |
|
81 | 81 | ```bash |
82 | 82 | git clone https://github.com/StructuralWizard/10DaysOfCode.github.io.git |
83 | 83 | ``` |
84 | 84 |
|
85 | | -This will create a local copy of the repository in your current directory. |
| 85 | +Esto creará una copia local del repositorio en su directorio actual. |
86 | 86 |
|
87 | | -### Install the dependencies of this repository |
88 | | -To install the dependencies listed in `requirements.txt`, make sure your virtual environment is activated, then run: |
| 87 | +### Instalar las dependencias de este repositorio |
| 88 | +Para instalar las dependencias enumeradas en `requirements.txt`, asegúrese de que su entorno virtual esté activado, luego ejecute: |
89 | 89 |
|
90 | 90 | ```bash |
91 | 91 | pip install -r requirements.txt |
92 | 92 | ``` |
93 | 93 |
|
94 | | -This will install all the required Python packages for the project. |
| 94 | +Esto instalará todos los paquetes de Python necesarios para el proyecto. |
95 | 95 |
|
96 | | -### Run site in local server |
97 | | -This site has been created using [Just the Docs] theme and the hosted in [GitHub Pages]. You can [Browse our documentation] for more information. |
| 96 | +### Ejecutar el sitio en un servidor local |
| 97 | +Este sitio ha sido creado usando el tema [Just the Docs] y alojado en [GitHub Pages]. Puede [Navegar por nuestra documentación] para obtener más información. |
98 | 98 |
|
99 | | -To visualise the github site in the browser rather than editing its markdown you can run `bundle exec jekyll serve` from the main 10DaysOfCode folder where you have the _config.yml file. |
| 99 | +Para visualizar el sitio de github en el navegador en lugar de editar su markdown, puede ejecutar `bundle exec jekyll serve` desde la carpeta principal de 10DaysOfCode donde tiene el archivo _config.yml. |
100 | 100 |
|
101 | | -Assuming [Jekyll] and [Bundler] are installed on your computer: |
| 101 | +Suponiendo que [Jekyll] y [Bundler] están instalados en su computadora: |
102 | 102 |
|
103 | | -1. Change your working directory to the root directory of your site. |
| 103 | +1. Cambie su directorio de trabajo al directorio raíz de su sitio. |
104 | 104 |
|
105 | | -2. Run `bundle install`. |
| 105 | +2. Ejecute `bundle install`. |
106 | 106 |
|
107 | | -3. Run `bundle exec jekyll serve` to build your site and preview it at `localhost:4000`. |
| 107 | +3. Ejecute `bundle exec jekyll serve` para construir su sitio y previsualizarlo en `localhost:4000`. |
108 | 108 |
|
109 | | - The built site is stored in the directory `_site`. |
| 109 | + El sitio construido se almacena en el directorio `_site`. |
110 | 110 |
|
111 | 111 |
|
112 | | -Note: If you are using a Jekyll version less than 3.5.0, use the `gems` key instead of `plugins`. |
| 112 | +Nota: Si está utilizando una versión de Jekyll inferior a 3.5.0, use la clave `gems` en lugar de `plugins`. |
113 | 113 |
|
114 | 114 |
|
115 | 115 |
|
|
0 commit comments