Tuesday, May 22, 2018

Jupyter Notebook Python user input() function

Jupyter notebook has added a feature I have always wished it had long ago. Before now, writing a script that accepts input from user with the input() function in python3 or raw_ input() function in python2 was almost impossible and you have to switch between the terminal window and the jupyter notebook all the time.

The newer version of jupyter notebook has made available a text-box right inside the browser whenever you call the input() function as seen below;-

Enjoy the new GUI feature of the jupyter notebook.

No comments:

Post a Comment