# Jupyter Converts Code Cell with input() into Markdown with Comments

**URL:** <https://discourse.jupyter.org/t/jupyter-converts-code-cell-with-input-into-markdown-with-comments/28548>\
**Category:** Notebook\
**Created:** [September 21, 2024, 5:57pm UTC](https://discourse.jupyter.org/t/jupyter-converts-code-cell-with-input-into-markdown-with-comments/28548 "2024-09-21T17:57:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Salak](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@Salak](https://discourse.jupyter.org/u/Salak)\
**Post date:** [September 21, 2024, 5:57pm UTC](https://discourse.jupyter.org/t/jupyter-converts-code-cell-with-input-into-markdown-with-comments/28548/1 "2024-09-21T17:57:17Z")

</div>

I’m encountering a strange issue in Jupyter Notebook when trying to use the `input()` function in my code cells. When I run the following code:  
a = int(input("Enter a number: "))  
print(a)  
Instead of executing the code normally, Jupyter converts the cell into a Markdown cell and adds comments to the code like this:

```auto
### a = int(input("Enter a number: "))
print(a)

```

It doesn’t allow me to provide input, and the kernel shows a message like:

css

Copy code

```auto
Cell not executed due to pending input.
The cell has not been executed to avoid kernel deadlock as there is another pending input.

```

#### **What I’ve Tried:**

- Restarting the kernel and re-running the code.
- Ensuring that the cell is in “Code” mode (not Markdown).
- Disabling extensions.
- Reinstalling Jupyter Notebook.

None of these steps seem to resolve the issue. It keeps happening with every code cell that uses `input()`.

#### **System Info:**

- Jupyter Notebook (latest version)
- Windows 10
- Running in Anaconda environment

#### **Help Needed:**

Has anyone else faced this issue? Is there a fix or a configuration I might be missing? Any help would be appreciated!

* * *

---

<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:** [September 21, 2024, 5:59pm UTC](https://discourse.jupyter.org/t/jupyter-converts-code-cell-with-input-into-markdown-with-comments/28548/2 "2024-09-21T17:59:10Z")

</div>

It sounds like [this covered in ‘Int(input()) command not working on jupyter notebook’](https://discourse.jupyter.org/t/int-input-command-not-working-on-jupyter-notebook/24184/5) and in [‘Notebook does not accept user input’](https://discourse.jupyter.org/t/notebook-does-not-accept-user-input/25661).  
That help?

---

<div class="post-metadata">

**Author:** ![krassowski](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/krassowski/32/1685_2.png) [@krassowski](https://discourse.jupyter.org/u/krassowski)\
**Post date:** [September 21, 2024, 10:10pm UTC](https://discourse.jupyter.org/t/jupyter-converts-code-cell-with-input-into-markdown-with-comments/28548/3 "2024-09-21T22:10:40Z")

</div>

> Jupyter Notebook (latest version)

Can you post the exact version displayed in the help menu?
