This is a common issue because Jupyter Notebooks are not designed to handle interactive input in the same way as a standard Python script run in a terminal.
In Jupyter Notebooks, the input()
function does not work as expected because the notebook interface does not support interactive command-line input. Instead, you can use Jupyter's built-in widgets to create interactive elements that can capture user input.
https://docs.databricks.com/en/notebooks/ipywidgets.html