title: How can I get an input field to appear in JupyterLab?
body: <p>I am trying to run the following code:</p>
  <pre><code>num=int(input(&quot;Enter a number: &quot;))
  
  if num &gt; 0:
  
      print(&quot;That's a positive number!&quot;)
  </code></pre>
  <p><a href="https://i.stack.imgur.com/ZJMXy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZJMXy.png" alt="enter image description here" /></a>
  The first time that I run it, I will get an input prompt underneath the code's cell asking me to &quot;Enter a Number&quot;. The program will function as expected in JupyterLab, but only once. After I try to run the code again (or copy and paste it into a new cell), the &quot;Enter a number&quot; prompt will no longer appear, but a new input cell will appear instead:</p>
  <p><a href="https://i.stack.imgur.com/GhRCy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GhRCy.png" alt="enter image description here" /></a></p>
  <p>How can I fix this problem?</p>