Centro de Demos Interactivo

Pruebe la enseñanza por su cuenta

Todo en esta página se ejecuta en su navegador. El código corre en un entorno aislado (sandbox): no puede acceder a nuestros servidores, a sus archivos ni a la red.

Las explicaciones de la demo están en inglés.

Python: código de una clase real

Este es el código fuente publicado con la clase.

Python and Artificial Intelligence · Lecture 26: Object-oriented programming — classes and objects

The lecture introduces classes and objects: one class used as a template, several objects created from it, each holding its own data.

⬇ Descargar
Salida
(sin salida)

Se ejecuta en un entorno aislado en su navegador, con un límite de tiempo. La primera ejecución descarga el entorno de Python (unos 10 MB).

Línea por línea

  1. 1–2class Student: defines a new type named Student. pass means the class has no body yet — it is an empty template.
  2. 4Student() creates an object (an instance) from the class and stores it in the variable student1.
  3. 5–7Attributes are attached to this one object with dot notation: a name, a score and an active flag. They belong to student1 only.
  4. 9–12A second, independent object. Changing student2 never changes student1: each object keeps its own data.
  5. 14–20Each object’s attributes are read back with the same dot notation and printed.

Práctica

Add a third student, student3, named "Omar" with a score of 78, and print "Student 3", his name and his score after the others.

Follow the pattern of student1 and student2.

Python y un microcontrolador

Escrito para esta demo, siguiendo los temas de la clase.

A Python program reads sensor lines such as "T:23.5;L:512" from a microcontroller over a serial port, rejects corrupted lines, keeps a moving average and switches the board’s LED on when the room is too warm. Here it talks to a simulated board; with `pip install pyserial` the same code drives a real Arduino. The Python side and its checks are tested; the Arduino sketch has not yet been tested on physical hardware.

⬇ Descargar
Salida
(sin salida)

Se ejecuta en un entorno aislado en su navegador, con un límite de tiempo. La primera ejecución descarga el entorno de Python (unos 10 MB).

Línea por línea

  1. 22–43parse_reading decodes one raw line, splits it into key:value parts, converts the numbers and rejects anything malformed or outside what the sensors can measure. A bad line returns None instead of crashing the program.
  2. 46–52LabMonitor receives the port. It only needs readline() and write(), so a real serial.Serial and the SimulatedBoard are interchangeable.
  3. 50, 54–55The moving average over the last readings smooths out sensor noise; deque(maxlen=…) drops the oldest value automatically.
  4. 57–60set_led sends LED:1 or LED:0 only when the state changes, so the board is not flooded with commands.
  5. 62–70step reads one line and reacts to it; bad lines are counted, good ones update the average and the LED.

Práctica

Count how often the LED changes state. Add an attribute led_switches that starts at 0 and goes up by one every time set_led actually sends a command.

Initialise it in __init__, increase it inside the if in set_led.

Análisis de datos con Pandas

Escrito para esta demo, siguiendo los temas de la clase.

Data processing using Python and the Pandas library · Lecture 3: selecting rows and columns with loc and iloc

A small table of results, filtered by position with iloc, by condition with loc, and summarised with groupby — the operations taught in the course’s data-selection section.

Salida
(sin salida)

Se ejecuta en un entorno aislado en su navegador, con un límite de tiempo. La primera ejecución descarga el entorno de Python (unos 10 MB).

Línea por línea

  1. 3–7A DataFrame is a table: each key becomes a column, each list holds that column’s values.
  2. 11–12iloc selects by position. 1:3 means rows 1 and 2 — the end of a slice is not included.
  3. 14–15loc selects by label and condition. Conditions are combined with & and each one is wrapped in parentheses.
  4. 17–18groupby("course") splits the table by course; .mean() averages the scores of each group.
Ver la clase (vista previa gratuita) →

El curso “Python e Inteligencia Artificial” publica por ahora su parte de fundamentos de Python. Las clases de aprendizaje automático todavía no están publicadas, por eso no se muestran aquí.

GIS con ArcGIS Maps SDK for JavaScript

Escrito para esta demo, siguiendo los temas de la clase.

Las clases de GIS funcionan con ArcGIS Maps SDK for JavaScript de Esri, que puede requerir una cuenta de Esri o una clave de API. El recorrido de abajo explica el código; vea las clases de vista previa gratuitas para verlo en funcionamiento.

1<div id="viewDiv" style="height: 400px"></div>2<link rel="stylesheet" href="https://js.arcgis.com/4.30/esri/themes/light/main.css">3<script src="https://js.arcgis.com/4.30/"></script>4<script>5  require(["esri/config", "esri/Map", "esri/views/MapView", "esri/layers/FeatureLayer"],6    (esriConfig, Map, MapView, FeatureLayer) => {7      esriConfig.apiKey = "YOUR_ARCGIS_API_KEY";89      const map = new Map({ basemap: "arcgis/topographic" });1011      const view = new MapView({12        container: "viewDiv",13        map: map,14        center: [-118.805, 34.027],   // longitude, latitude15        zoom: 1216      });1718      const trailheads = new FeatureLayer({19        url: "https://services3.arcgis.com/GVgbJbqm8hXASVYi/arcgis/rest/services/Trailheads/FeatureServer/0",20        outFields: ["TRL_NAME", "CITY_JUR"],21        popupTemplate: { title: "{TRL_NAME}", content: "City: {CITY_JUR}" }22      });23      map.add(trailheads);24    });25</script>

Línea por línea

  1. 1The map is drawn inside this element; it needs a height.
  2. 2–3The ArcGIS Maps SDK for JavaScript stylesheet and library, loaded from Esri’s CDN.
  3. 5–6require loads the modules the page uses: configuration, the map, the 2D view and feature layers.
  4. 7Esri basemaps and services are accessed with an API key from an ArcGIS account.
  5. 9A Map holds the data: here a topographic basemap.
  6. 11–16A MapView shows the map in the page: where (center, as longitude and latitude) and how close (zoom).
  7. 18–23A FeatureLayer adds points from a hosted feature service; popupTemplate decides what appears when a point is clicked.

Cuestionario de autoevaluación

  1. 1. What does `student1 = Student()` do?

  2. 2. After `student1.score = 90` and `student2.score = 85`, what is `student1.score`?

  3. 3. What does `pass` mean inside `class Student:`?

Certificado de finalización

Muestra: no es un certificado real

Los estudiantes que completan un curso reciben un certificado con un número único que cualquier persona puede verificar en la plataforma.

Cómo funciona la verificación →

Itinerarios del estudiante, del instructor y del supervisor

Cada paso está marcado como disponible hoy o planificado, para que vea exactamente lo que existe.

Estudiante

  1. 1El equipo de EduCoursesPro lo inscribe en el curso acordadoDisponible hoy
  2. 2Ve las clases; se guardan el progreso y el punto de reanudaciónDisponible hoy
  3. 3Descarga el código fuente y la guía técnica de la claseDisponible hoy
  4. 4Responde preguntas de control dentro del videoDisponible hoy
  5. 5Consulta al tutor de IA sobre la clase que está viendoDisponible hoy
  6. 6Hace cuestionarios de autoevaluación con retroalimentación inmediataDisponible hoy
  7. 7Entrega un proyecto para su calificación dentro de la plataformaPlanificado
  8. 8Recibe un certificado verificable al finalizarDisponible hoy

Instructor

  1. 1Ve el progreso de cada estudiante en el cursoDisponible hoy
  2. 2Responde las preguntas de los estudiantes en cada claseDisponible hoy
  3. 3Envía mensajes a los estudiantes del cursoDisponible hoy
  4. 4Califica proyectos con una rúbrica compartida (durante un piloto: fuera de la plataforma)Planificado
  5. 5Ve las calificaciones de los cuestionarios de un grupo y un informe de habilidadesPlanificado

Supervisor de la institución

  1. 1Recibe de EduCoursesPro una exportación del progreso por cursoDisponible hoy
  2. 2Tiene un panel institucional con grupos y licenciasPlanificado
  3. 3Importa una lista de clase e invita a los estudiantesPlanificado
  4. 4Descarga informes de finalización y de habilidades de la instituciónPlanificado

¿Quiere un recorrido guiado para su equipo?

Podemos mostrarles la plataforma a sus instructores y coordinadores y responder sus preguntas en vivo.

Demo guiada