0Pricing
Data Science Academy · Lección

Celdas, kernels y orden de ejecución

Descubra cómo se ejecuta realmente un notebook de Jupyter.

Celdas, kernels y orden de ejecución es una lección gratuita de Data Science Academy en CoddyKit. Esta es la lección 2 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de Data Science Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de Data Science Academy incluye 4 lecciones en total.

Partes de esta lección aún no han sido traducidas y se muestran en inglés.

A Notebook Is a Stack of Cells

A Jupyter notebook is built from cells, small editable boxes you fill and run one at a time. This is what makes analysis feel interactive.

Run One, See the Result

Type code in a cell, then press Shift+Enter to run it. The output appears right below, so you never lose sight of what happened.

2 + 3 * 4

The Kernel Does the Work

Behind your notebook runs a kernel, a live Python process that executes each cell and remembers everything between them.

State Carries Over

Because the kernel stays alive, a variable set in one cell is still there in the next. Run this, then use total later.

total = 100

Use It Anywhere Below

In a fresh cell you can reuse total without redefining it. The kernel kept it in memory for you, ready to build on.

total * 2

Order of Execution Matters

Cells run in the order you press run, not top to bottom. That run order is the single biggest source of confusing notebook bugs.

Read the Run Counter

The number in [ ] beside a cell shows when it last ran. Tracking that execution count tells you the true order things happened.

Out-of-Order Surprises

If you edit an early cell but skip rerunning it, later cells use stale values. Your run order no longer matches the code you see.

Restart to Get Clean

When state feels tangled, use Restart Kernel. It wipes all variables so you start from a blank, trustworthy slate.

Run All in Order

After restarting, choose Run All to execute every cell top to bottom. This proves your notebook works as a clean, repeatable story.

Edit Mode vs Command Mode

Green means you are typing inside a cell; blue means you are commanding the notebook. Esc and Enter flip between the two.

Quick Check

Your notebook gives odd results and you suspect cells ran out of order.

Recap: Cells and Kernel

You learned that cells run on a stateful kernel, that run order can fool you, and that Restart plus Run All keeps a notebook honest. 👍

Preguntas frecuentes

¿La lección «Celdas, kernels y orden de ejecución» es gratis?

Sí — el texto completo de «Celdas, kernels y orden de ejecución» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de Data Science Academy, actualiza a CoddyKit PRO. El curso de Data Science Academy incluye 4 lecciones en total.

¿Qué aprenderé en «Celdas, kernels y orden de ejecución»?

Descubra cómo se ejecuta realmente un notebook de Jupyter. Practicas Data Science Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.

¿Necesito experiencia previa para empezar Data Science Academy?

No se requiere experiencia previa. Data Science Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 2 de 4.

¿Cuánto tiempo toma la lección «Celdas, kernels y orden de ejecución»?

La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.

¿Puedo escribir y ejecutar código en esta lección de Data Science Academy?

Sí. Cada lección de Data Science Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.

Todas las lecciones de este curso

  1. Instale Python sin complicaciones
  2. Celdas, kernels y orden de ejecución
  3. Notas Markdown junto al código
  4. Importe, inspeccione y repita
← Volver a Data Science Academy