Brand New to Python and Code is Running Twice


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.

See Cell numbering broken on new Jupyter lab/notebook .

Especially here how to disable the extension that causes the issue. Or update the extension to 4.0.21 or later.

Or, here said updating Anaconda and Jupyter fixed. As you are starting out, that may be the easiest.

2 Likes