# Brand New to Python and Code is Running Twice

**URL:** https://discourse.jupyter.org/t/brand-new-to-python-and-code-is-running-twice/27938
**Category:** JupyterHub
**Tags:** how-to, notebook
**Created:** [August 28, 2024, 5:05pm UTC](https://discourse.jupyter.org/t/brand-new-to-python-and-code-is-running-twice/27938 "2024-08-28T17:05:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![i.martinez1](https://avatars.discourse-cdn.com/v4/letter/i/977dab/32.png) [@i.martinez1](https://discourse.jupyter.org/u/i.martinez1)
#### Post date: [August 28, 2024, 5:05pm UTC](https://discourse.jupyter.org/t/brand-new-to-python-and-code-is-running-twice/27938/1 "2024-08-28T17:05:10Z")

</div>

![Screenshot 2024-08-28 at 12.59.51 PM](https://canada1.discourse-cdn.com/flex031/uploads/jupyter/original/2X/0/0d8d750a47d106918e9323dbaa2e53b81ee92827.png)  
Hi there! I am brand new to python and I am already lost. This is probably such a basic question, but I am having an issue when I run my code. When I try to run my code in markdown, the cells run twice. I added a screenshot of my page to show what is happening. When I run one line of code, its starts at [1], but when I run more lines it goes straight to [3], [5], [7]. I do not know if this means the code is running twice but I can’t figure out what is causing this.

---

<div class="post-metadata">

### Author: ![fomightez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fomightez/32/495_2.png) [@fomightez](https://discourse.jupyter.org/u/fomightez)
#### Post date: [August 28, 2024, 5:50pm UTC](https://discourse.jupyter.org/t/brand-new-to-python-and-code-is-running-twice/27938/2 "2024-08-28T17:50:06Z")

</div>

See [Cell numbering broken on new Jupyter lab/notebook](https://discourse.jupyter.org/t/cell-numbering-broken-on-new-jupyter-lab-notebook/26585) .

Especially [here](https://discourse.jupyter.org/t/cell-numbering-broken-on-new-jupyter-lab-notebook/26585/5) how to disable the extension that causes the issue. Or update the extension to 4.0.21 or later.

Or, [here](https://discourse.jupyter.org/t/cell-numbering-broken-on-new-jupyter-lab-notebook/26585/5) said updating Anaconda and Jupyter fixed. As you are starting out, that may be the easiest.
